Needed a func to convert base 2 into 10, and back. Found the referenced code in this func for moving between three bases, and generalized it to between bases 2 and 62, and all in between.
Upconvert a number, then down convert, then upconvert again. Go wild, have fun.