'Return a new `~astropy.units.Quantity` object with the specified unit.
Parameters
unit : `~astropy.units.UnitBase` instance, str
An object that represents the unit to convert to. Must be
an `~astropy.units.UnitBase` object or a string parseable
by the `~astropy.units` package.
equivalencies : list of equivalence pairs, optional
A list of equivalence pairs to try if the units are not
directly convertible.  See :ref:`unit_equivalencies`.
If not provided or ``[]``, class default equivalencies will be used
(none for `~astropy.units.Quantity`, but may be set for subclasses)
If `None`, no equivalencies will be applied at all, not even any
set globally or within a context.
See also
to_value : get the numerical value in a given unit.'

def to(self, unit, equivalencies=[]):

    unit = Unit(unit)
    return self._new_view(self._to_value(unit, equivalencies), unit)
