Sentence:  She was <WSD>recast</WSD> as the villain. 
Meaning of the word marked with <WSD> tags:  To assign (actors) to different roles.