Fix:

constant casting for preventing int overflow on big numbers