Transform numbers to hexadecimals and viceversa