No problem. Same as F1->H1. The only potential problem is that when you apply visa from outside of US, visa officer may ask you some addttional questions and you may have the risk to be rejected. I changed from F2 to H1.