String to int

String to int

I can't find out how to parse a String to an integer in the deluge scripting language.
Hopefully someone out there can explain to be how this is done.

Thanks