Fix missing 1 number in some expressions with GCC compiler

Fix data loss in double to int conversion
Remove BaseConvert file