ToInt32() threw an exception on x64