Convert from one datatype to another without changing the underlying data. The argument type defines the type of the return argument and must be one of 'uint8', 'uint16', 'uint32', 'uint64', 'int8', 'int16', 'int32', 'int64', 'single' or 'double'.
An example of the use of typecast on a little-endian machine is
x = uint16 ([1, 65535]); typecast (x, 'uint8') [ 0, 1, 255, 255]