Convert non-base 10 numbers to base 10.