Type Cast
- Updated2023-02-17
- 2 minute(s) read
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.

Inputs/Outputs

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.

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

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