# ToInteger (Any value)

| **Name**    | ***ToInteger***                                                                                                   |
| ----------- | ----------------------------------------------------------------------------------------------------------------- |
| Syntax      | ToInteger (Any value)                                                                                             |
| Purpose     | To convert a value into integer.                                                                                  |
| Description | Returns an integer representing the specified value. Returns null if the value cannot be converted to an integer. |
| Return Type | Integer                                                                                                           |
| Parameters  | value \[System.Object] – Value to be converted                                                                    |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FwsAaXf6Ohkknd0IYyS4d%2F0.png?alt=media)

**Example**

In this example, we will pass a string value to the function transformation object using a *Variables* object.

Where,

*value* = 12345.123

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FWw8ejaYvUZ3VWF80YjOB%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

In the output window, you can see that the provided string has been converted into an integer, and its data type has also been converted to Integer.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FTRWeHAfXqBSNpxlF8vFW%2F2.png?alt=media)
