To convert a number to a quantity using a scalar unit, instead use Modelica.Blocks.Math.Gain with k set to the unit.