It's not uncommon for you to have these kinds of pain while your still in your cast. People will often get similar pains once their cast is off and they have to start using the ankle again. I agree with gcoe that you should wait till your cast is off and take it as it comes with advice from physio and surgeon