toInteger

Returns the decimal value of this string as an integer.

Syntax
aString toInteger
Return Value
The integer value.
Remarks

Only the first contiguous digits are used. An empty string or any string not starting with a digit will return 0.