[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTO_INT\u003c/code\u003e function converts a string data type into an integer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTO_INT\u003c/code\u003e function is compatible with JSON and string data types.\u003c/p\u003e\n"],["\u003cp\u003eThe function is invoked using \u003ccode\u003eTO_INT()\u003c/code\u003e on the target string variable, such as \u003ccode\u003e$var1$.TO_INT()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns an integer value as the output of the string conversion, for example a string such as "35" converted with this function would output the integer 35.\u003c/p\u003e\n"]]],[],null,["# TO_INT function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nTO_INT function\n===============\n\n`TO_INT` function\n-----------------\n\nSupported data type\n-------------------\n\n\nThe `TO_INT` function supports the following data types:\n\n- JSON\n- String\n\nExample: Convert a string to an integer\n---------------------------------------\n\n\n**Sample data** : `$var1$ = \"35\"`\n\n\n**Usage** : `$var1$.TO_INT()`\nConvert var1 to integer.\n\n\n**Output** : `35`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]