Is there a formula for heat of fusion equal 334kJ/kg for ice?

The heat of fusion of 334 J/g (or kJ/kg) is a measured quantity. Usually that value is used to determine the heat needed to melt ice; e.g.,

q = heat required to melt 25 g ice = 25 g x 334 J/g = ?? J.