Converts from base m to n (0 < m, n <= 62)