Cook the vegetables. Melt two tablespoons of butter in a large, deep skillet over medium heat. Add the diced onion and diced carrots and cook for about eight minutes, stirring now and then, until the onion is soft and the carrots have started to soften.
Build the gravy base. Stir in two tablespoons of flour and two tablespoons of tomato paste and cook for two minutes, stirring constantly — the two minutes cook the raw taste out of the flour and darken the tomato paste.
Make the gravy. Pour in two cups of stock a little at a time, stirring as you go so no lumps form, then add one tablespoon of Worcestershire sauce and one teaspoon of dried thyme. Bring the gravy to a gentle simmer and cook for five to six minutes, stirring often, until it thickens enough to coat the back of a spoon. Season with salt and black pepper.
Add the turkey and peas. Take the skillet off the heat and fold in three cups of chopped turkey and one cup of frozen peas, stirring until everything is coated.
Assemble the pie. Heat the oven to 400°F, then spread the filling in a nine-by-thirteen-inch baking dish and level it. Spoon four cups of mashed potatoes over the filling in large dollops, then spread them gently to the edges of the dish, sealing the mash against the sides so the gravy cannot bubble over. Roughen the surface with the tines of a fork — the ridges catch the heat and turn golden. Scatter half a cup of shredded cheddar over the top if you are using it.
Bake and rest. Set the dish on a baking sheet to catch drips, and bake for twenty-five to thirty minutes, until the potato peaks are golden brown and the filling bubbles at the edges. Let the pie rest for ten minutes before serving so the filling sets and a spoonful holds its shape.