Both `unsigned char` and `uint8_t` are unsigned (and the same type on most platforms) so this cast became redundant.