The clue is in the word itself - it’s actually a spell that prevents you from being selected to portray literally anything else for the rest of your career as an actor.
Well, maybe not wizard typecast, but typecast to play much older than he was. He was only 63 when he first played Gandalf. To put it in perspective, that's only one year older than Tom Cruise is right now.