Added ToQuantity - issue#32