Convert input text value as Number data type

Hello Friends
I have a text field in my flash application. I need to convert input text value as Numwer data type and assing with a variable. I have tried a lot but I can’t. Please give me information about it. I think it is releated to type casting.

Your Friend
Himanshu vyas