Unit convert

Use the table UnitConvert with the method valueConvert() for convert your Quantity :

UnitConvert::valueConvert(qty, fromUnit, ToUnit, itemId);