Hi Rod, in order to prevent a certain viewpoint, the choices you make have to be central to your storyline, even in a comedy; otherwise, you run the risk of people wondering why you made that choice.
For example, Emma Stone, a white actor, was cast as a mixed Asian character in Aloha, which left many wondering why they cast a white person for that role. There are rumors that Tom Hardy, another white actor, may play Jafar in a live-action version of Aladdin. There are also many examples of cis men playing trans women, which has drawn a lot of criticism. Why not cast trans actors? Most of these people, I’m sure, are not outwardly prejudiced, but their choices don’t seem to add anything substantive to the story, which naturally begs the question, “Why cast these white or cis male actors for non-white or trans roles?” It could be an underlying bias or tendency that drives those decisions.
I would ask myself, if you haven’t already, “How does casting men as women add to the story I’m telling?” Or, better yet, “Could I tell the same story with less distraction with women cast as women?”