you're talking about casting.
you can cast a string like this:
string $strVal = "150000";
int $intVal = (int)$strVal;
float $floatVal = (float)$strVal;
and you can go the other way too:
int $intVal = 1545;
string $strVal = (string)$intVal;
A
Technical Director - Framestore
Currently working on: Your Highness
IMDB