FIX: Throw an error when convert bignumber to integer.