But for that example, you now get a `Quantity` instead of a distance. How about
```
    distance = u.Quantity(distance)
    if distance.unit.physical_type == 'length':
        distance = distance.view(Distance)
```