Works by setting mode.
mode
convertMatrixType(x, type)
x
[matrix]. Matrix to convert.
matrix
type
[character(1)] New storage type.
character(1)
[matrix].
as.mytype drops dimension when used on a matrix.
as.mytype