I am a water aerobics instructor. All the guys in my class wear swim trunks with elastic AND drawstring. Whatever stays in place when you move, jump and bounce. While you will probably be surrounded by ladies, all that will be visible of you are head and shoulders.
I hope you will enjoy the classes.