Casting in melee isn't a problem unless you're for some reason casting a ranged attack roll spell, which would be a generally silly thing to do when you likely have a lot of other spell options. It's a handy thing to have when you want to disengage, but I really think EvilAnagram's rating is right on the mark.