Fix for OverflowException on x64
Merge pull request #28 from rvlieshout/master

ToInt32() threw an exception on x64