Class ConvertsToQuantityFunction