The following functions convert any number of string value to another number type:
intValue(n), longValue(n), charValue(n), doubleValue(n) and floatValue(n).
The usual Java type narrowing or widening conventions apply.
let i = intValue("666") # 666 (string to integer)
let j = intValue(1.234) # 1 (double to integer)
let k = intValue(666_L) # 666 (long to integer)
# etc