Integer, Base16 and Base64 conversion