def validate(self):
if self.value is not None:<EOL><INDENT>if not isinstance(self.value, six.integer_types):<EOL><INDENT>raise TypeError('<STR_LIT>'.format(<EOL>six.integer_types, type(self.value)))<EOL><DEDENT><DEDENT>
Verify that the value of the BigInteger is valid.

Raises:
    TypeError: if the value is not of type int or long