Cook the rigatoni al dente according to the instructions on the box. This usually means cooking it for 1-2 minutes less than the package recommends. The pasta will continue to cook a bit more when you bake it, so you don't want to overcook it at this stage.