Use of metals, their alloys or their compounds, as mould material