Allow cast to number

Used String:toNumber as opposed to native tonumber used in first patch