You have 60 days grace to file for a change of status. As long as you file before the expiry of the grace period you will be in status. You can file for a COS to F-1. However you need to contact the school to work out the logistics as the approval may take 12 months and school has to start by that time. You can only file a H-1 if you are cap exempt or you are able to file under the Cap, your registration in picked and you remain in status until October 1 of next year. ( start date of H-1 cap cases).