Preheat your oven to 350 degrees F
Take out a small baking dish and place garlic in it. Bake this in the preheated oven for 20 to 30 minutes or until it is soft. Remove this from the heat. When it is cool enough to touch, squeeze the softened garlic from the skins.
Now take an 8x8 inch baking dish, and spread your roasted garlic, spinach, artichoke hearts, alfredo style pasta sauce, mozzarella cheese, parmesan cheese, and the cream cheese.
Bake this in the preheated oven for 30 minutes, nor until the cheeses have been melted and are bubbly. Serve this warm.