Fix for "invalid transfers object" error.
Created by: cyclux
convertUnits() should return an integer. But some amounts return a float (like 2.019 Mi results in 2019000.0000000002) which leads to the "invalid transfers object" error. Here I propose a simple fix for it by forcing an integer value as return.