# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.langstack.com/welcome/get-started/learn-langstack/basics-and-essentials/explicit-type-conversion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
