Masking the integer to 8bits still needs the cast to char as a char could be unsigned resulting in a sign conversion