Well, if the Demon Lord's actions were actually motivated by saving the world from it's catastrophe, and they actually bothered to explain that to him, I could see him switching sides in order to save the world if they could manage to convince him they were telling the truth.