Convert a string to a number?

Convert a string to a number?

Seems like a simple thing to do, but I can't figure it out.  I'm pulling apart an XML file with XPath Builder, and when I assign some data from a node to a variable, it is a string.  If the data is actually a number (BIGINT), how do I make the variable it's assigned to a number type instead of a string?

Thanks.