When I learned the theory of relativity, I was taught that the equation of energy conservation for a moving particle is: $$E^2= (mc^2)^2 + (pc)^2.$$ When $p = 0$, this equation becomes $E=mc^2$, but I fail to see how this explains that $m$ (the mass at rest) can be converted to pure energy, and how it can be done (by atom nuclei fission or fusion for example). The only thing we can say is that if you have a certain distribution of energy, or its equivalent distribution of mass, the space-time would curve in the same way.
The equation above assumes a fixed value of $m$ originally, there is nothing that indicates that $m$ can vary.
Edit: In the other "duplicate" linked question it is assumed that Einstein's theory explains that mass and energy flow back and forth. I want to know how it explains that.
Further comments: In the course, after we derived that formula, the professor said that that's the explanation of why matter is energy. However, I was never satisfied with this because in the whole theory of special relativity there is no description of any flow between matter and energy. Like I said, only that they would be equivalent in certain situations, like when calculating the curvature of space-time. What I understand is that we need additional theories like the ones mentioned in the answers to fully explain it. Special relativity alone is not enough.