I think `int` conversion may cause problem if the result is more than 2^31.