code: def _GetValueAsObject(self, property_value):
      
      if property_value.type == pyolecf.value_types.BOOLEAN:
        return property_value.data_as_boolean
  
      if property_value.type in self._INTEGER_TYPES:
        return property_value.data_as_integer
  
      if property_value.type in self._STRING_TYPES:
        return property_value.data_as_string
  
      try:
        data = property_value.data
      except IOError:
        data = None
  
      return data
docs: Retrieves the property value as a Python object.
  
      Args:
        property_value (pyolecf.property_value): OLECF property value.
  
      Returns:
        object: property value as a Python object.