Type Cast

Casts x to the data type, type. The connector pane displays the default data types for this polymorphic function. Details

type is the data type to which you want to convert the data.
x is the data you want to convert to type. x can be any data type.
*(type *) &x is the value provided in x and converted to the same data type as type.

Type Cast Details

This function converts a 1D array of flat data to a string or a string to a 1D array of flat data. Flat data is defined recursively as a numeric scalar, a Boolean scalar, or a cluster of flat data. Casting data to a string converts it into machine-independent, big endian form. That is, the function puts the most significant byte or word first and the least significant byte or word last, removes alignment, and converts extended-precision numbers to 16 bytes. Casting a string to a 1D array converts the string from machine-independent form to the native form for that platform.