implemented method convert of class UnitConvert