Function
Truncate to an integer.
If provided a string, the function will try to parse it into an integer.