If you even have a use for conversions beyond 2^31 you could implement the data type "long" it supports +/- 9,223,372,036,854,775,807.
Good to see some Java coming in!