Yea, and of course, when the theater (acting) first started men had to act the woman's roles as women were not allowed in theaters. I guess that's why they call them "actors" because they act like someone they're not.
It has NOTHING to do with racism,  sexism, or any other ism. If someone wants to spend their money making a movie they can cast whomever they please.
Remember the play Peter Pan. Peter was played by a woman.Mary Martin. Then later Cathy Rigby.