Or, the .NET way:

int32.Parse, and also System.Convert