You can't change one for the other.
You would first have to officially give up your PR status. Once you do that, you would have to leave Canada. Once you are outside of Canada, you could then apply for a study permit provided you have the funds to pay for your studies in Canada and provided you have already been accepted into a program in Canada. You'll need to show a bank balance of $25K or more to be approved.