From a previous discussion, a popular compromise was that you can indeed cast a spell underwater without penalty (i.e. the rules to not stipulate any penalty), however, after doing so you would technically not to be holding your breath any longer (and so would be subject to drowning rules, if applicable).