My handy dandy "Complete Maya Programming" book, by one David A. D. Gould, arrived yesterday. I was thumbing through last night before I went to sleep and, oddly enough, this very subject was one of the first things that I saw in the appendix. "The Man" says that all that you need to convert a string to a number is a valid number in the string. So.
$aString="123";
$aFloat=$aString;
$anInt=$aString;
$aFloat == 123.0;
$anInt == 123;
When you use a (float) or (int) to cast a value those tags are just ingored. The work is done automatically.
Just thought it was neat that one of the first things I saw was an answer to a question I just read.
ww