Cook it till it's done.
Seriously, the difficulty in cooking a pig is that it's a big piece of meat and some parts may cook a little quicker than others.
If it's a tight fit, you can always cut the feet off (although some folks eat the feet and/or use them to cook beans and such with).