Implicit Type Conversion (ITC)
Last updated
Last updated
Implicit type conversion is the automatic conversion of a value from one data type to another. Langstack applications support Implicit type conversion, where a smaller data type may be converted to a larger data type. This means that if the user attempts to update a variable of a larger data type with a value of a smaller data type, this can be applied directly without the user needing to explicitly express the type to convert to.
For example, to assign an Integer data type to a Numerical data type, see the action below.
In this Action, the value of variable int1
(data type Integer) is updated to variable num1
(data type Numerical) without explicitly mentioning the conversion function.