(UINT32) is wrong type case, (UINT8) needed