code: def field_value(self, value):
          
          if not self.is_array:
              return self.field_type(value)
  
          if isinstance(value, (list, tuple, set)):
              return [self.field_type(item) for item in value]
          return self.field_type(value)
docs: Validate against NodeType.