In a large pot on the stove, cook the stuffed shell pasta according to package instructions.
Once the pasta has finished cooking, drain the pasta and let it cool till it becomes comfortable to touch.
In a small bowl, crack open the egg and mix with the ricotta cheese, dried basil, salt and pepper.
Using a small teaspoon, put the ricotta mixture into each individual pasta shell and place in the casserole dish. Start on the outside arranging each stuffed pasta shell and head towards the center, with the stuffed pasta shells overlapping.
Repeat for each pasta shell until the casserole dish is full.