Danny Devito as the headmaster of Hogwarts