docs: def to(self, units, equivalence=None, **kwargs):
          """
          Creates a copy of this array with the data converted to the
          supplied units, and returns it.
  
          Optionally, an equivalence can be specified to convert to an
          equivalent quantity which is not in the same dimensions.
  
          .. note::
  
              All additional keyword arguments are passed to the
              equivalency, which should be used if that particular
              equivalency requires them.
  
          Parameters
          ----------
          units : Unit object or string
              The units you want to get a new quantity in.
          equivalence : string, optional
              The equivalence you wish to use. To see which
              equivalencies are supported for this unitful
              quantity, try the :meth:`list_equivalencies`
              method. Default: None
          kwargs: optional
              Any additional keywoard arguments are supplied to the
              equivalence
  
          Raises
          ------
          If the provided unit does not have the same dimensions as the array
          this will raise a UnitConversionError
  
          Examples
          --------
          >>> from unyt import c, gram
          >>> m = 10*gram
          >>> E = m*c**2
          >>> print(E.to('erg'))
          8.987551787368176e+21 erg
          >>> print(E.to('J'))
          898755178736817.6 J
          """
          return self.in_units(units, equivalence=equivalence, **kwargs)