In BG2 there was the
https://baldursgate.fandom.com/wiki/Shapechange spell with which "... a wizard is able to assume the form of a powerful creature (mind flayer, iron golem, greater wolfwere, earth elemental, fire elemental, or giant troll)."
Seems becoming a mind-flayer (temporarily perhaps) isn't necessarily completely off the table.