The reason why we cook the pasta al dente before baking is that it doesn't overcook in the oven later. The pasta should be soft but still quite firm before adding it to the casserole. Also, it helps the pasta to absorb just the right amount of creamy sauce without making the pasta too thick and soft.