The process that changes metamorphic rock to igneous rock is melting followed by cooling.
In the rock cycle, metamorphic rocks can be subjected to high temperatures and pressures that can eventually lead to melting. Once they melt, the molten rock (magma) can then cool and solidify to form igneous rock.