Converts numbers from one base to another.