You cannot. This number, written out, is:
1557760000000
The max int
is:
2147483648
This is clearly much smaller.
You can, however, cast to a long
. Its max value is
9223372036854775808
which, even at a glance, is much larger than your double. Use the following code:
long iLong = (long)iD;