Type Cast

Casts a specified input (x) to the specified data type, (type), by flattening it and unflattening it using the new data type.

If the node must reinterpret data instead of transforming it, this node uses a temporary buffer.

Note If you use this node to convert between a string and a byte array, the result might change in future versions of this product.
1378

Inputs/Outputs

datatype_icon

type

The data type to which you want to convert the data.

Wire any constant or control to this input to set the data type to which you want to convert the data. This node ignores any data in the constant or control you wire to this input.

datatype_icon

x

The data you want to convert to the specified data type (type). This input can be any data type.

datatype_icon

output

The value provided in x and converted to the same data type as type.