How can sedimentary and igneous rocks be formed in to metamorphic rocks?

No matter what kinds of rocks they are they can be changed into any other kind of rock. Sedimentary rocks and igneous rocks can become metamorphic rocks with either contact or regional metamorphism. This means that either the rocks have been in contact with or close to high heat and high pressure that changes the rock.