This may not really be conversion as such, but is there any way to take the value of a string and convert it to a integer?

ie string contains "12345"
I want to make it an int, with value 12345.

Please help