Hello and Welcome to ‘Ask A Doctor’ service. I have reviewed your query and here is my advice. Your doctor would not likely put an infected leg in a cast. However, if you do get a cast and the pain increases or you develop fever then you need to go to emergency right away. Hope I have answered your query. Let me know if I can assist you further.