code: def equals_as(self, value_type, other):
          
          if other == None and self.value == None:
              return True
          if other == None or self.value == None:
              return False
  
          if isinstance(other, AnyValue):
              other = other._value
  
          if other == self.value:
              return True
          
          value1 = TypeConverter.to_type(value_type, self.value)
          value2 = TypeConverter.to_type(value_type, other)
  
          if value1 == None or value2 == None:
              return False
  
          return value1 == value2
docs: Compares this object value to specified specified value.
          When direct comparison gives negative results it converts
          values to type specified by type code and compare them again.
  
          :param value_type: the Typecode type that defined the type of the result
  
          :param other: the value to be compared with.
  
          :return: true when objects are equal and false otherwise.