Converts this number from a unit to another
from
to
num unitConvert<D extends Dimension>(Unit<D> from, Unit<D> to) => from.valueTo(this, to);