String to Float

Is there a simple way to convert a string to a number? In AS it would be Number( “24297” ) etc.

‘tonumber’

Thanks!