Invalid type cast (UINT16 ->> UINT8)