def METHOD_NAME(self, value):
    '''
    Ensures that value is the correct type.
    '''
    # If using an array, the array type will do its own checking.
    if not self._use_array:
        if type(value) != self._type:
            raise TypeError(repr(value) + ' is illegal type.  ' + \
                'Must be type ' + repr(self._type))