hex/byte to int conversion

and it will attempt to turn it into hex.

No not attempt, it will actually turn it into a 4 bit number.
Whether it makes any sense to you is another matter, but bit patterns are just bit patterns. Truly learn that and you are half way to understanding most of what computers do.