New function: parseInt()

Equivalent of JavaScript's parseInt()