The system function MathLib.stringAsInt accepts a character value (like "98") and returns the equivalent value of type BIGINT. If the input is nonnumeric, the function returns a NULL.
MathLib.stringAsInt(numberAsText STRING in) returns (result BIGINT nullable)
For details on the implications of assigning numeric values to fields of different types, see Assignments.
myField = "-5"; // result = -5 result = MathLib.stringAsInt(myField);
Related concepts
Syntax diagram for EGL functions
Related reference
EGL library MathLib