code: def to_skycoord(self, unit=None):
          
          from astropy.coordinates import SkyCoord
          from astropy.units import au
          x, y, z = self.position.au
          return SkyCoord(representation='cartesian', x=x, y=y, z=z, unit=au)
docs: Convert this distance to an AstroPy ``SkyCoord`` object.