Flash 8 input text field

Whenever i try to use a value from an input field in flash 8 the value is of type string while i intend to get a type number. can some tell me how to fix this.