Convert numbers from base X to base Y