'Quantities are able to directly convert to other units that
have the same physical type.'

def __getattr__(self, attr):

    if (not self._include_easy_conversion_members):
        raise AttributeError(u"'{0}'    object    has    no    '{1}'    member".format(self.__class__.__name__, attr))
    def get_virtual_unit_attribute():
        registry = get_current_unit_registry().registry
        to_unit = registry.get(attr, None)
        if (to_unit is None):
            return None
        try:
            return self.unit.to(to_unit, self.value, equivalencies=self.equivalencies)
        except UnitsError:
            return None
    value = get_virtual_unit_attribute()
    if (value is None):
        raise AttributeError(u"{0}    instance    has    no    attribute    '{1}'".format(self.__class__.__name__, attr))
    else:
        return value
