Add helper class for conversion without using 64bit arithmetic