Fixed 0xFF to 0xFFFF issue, used forced conversion to remove warning