I've tried this recipe with both, and I'm happy to say they both work. My preference is to grate the cheese yourself. It yields a slightly creamier end result with a better overall consistency, but the difference is pretty minimal, and I'm all about a shortcut here and there, so if all you have time for is store-bought shredded cheese, go for it!