Converts numbers between different bases even between custom radix.