Val in iOS

Is there a function that converts text to the numeric value, I was using Val(var) but that doesn’t work anymore.

Thanks

http://developer.xojo.com/integer

So I do something like:

i = Integer.Parse(TextInput.Text)

What if I need a double, like 1.5?

It’s all in the documentation.
http://developer.xojo.com/double