> For the complete documentation index, see [llms.txt](https://docs.langstack.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.langstack.com/welcome/get-started/learn-langstack/basics-and-essentials/explicit-type-conversion.md).

# Explicit Type Conversion

In the case of type conversion from a larger data type to a small data type, there is a possibility of potential loss of information. To avoid any user input mistakes or accidental user intent, Langstack applications protect the users against the implicit or automatic type conversion of larger data types to smaller data types.&#x20;

If the users still require such conversions, they can do so by explicitly choosing the available conversion functions.&#x20;

In the Action below, the variable `num1` (data type Numerical) is updated to variable `int1` (data type Integer) explicitly with an expression that converts the num1 variable to an integer using the `toInteger()` function.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_2/ch2explicittypeconversion_img1.png" alt=""><figcaption></figcaption></figure>
