@classmethod<EOL><INDENT>def _assert_safe_casting(cls, data, subarr):<DEDENT>
if not issubclass(data.dtype.type, np.unsignedinteger):<EOL><INDENT>if not np.array_equal(data, subarr):<EOL><INDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT>
Ensure incoming data can be represented as uints.