If Java were a decent OO language you would just say something like:

int i = aString.toInt()

which would make it a little consistent with toString() which is everywhere.

Its not though. The incredible number of stupid inconsistencies in core api make Java the dogs bollocks to work with as you spend more time searching around for how to do something than just doing it.