You can cook a meatloaf in a metal or a glass loaf pan, but a metal loaf pan is best because it conducts more heat which is better for dense meatloaf.