Heat oven to 400°F. Boil sweet potatoes 15–20 minutes until tender; drain. Mash with 2 tablespoons oil, milk and 1/2 teaspoon salt.
Heat remaining oil in a pot. Cook onion, carrots and celery 8 minutes. Add garlic, tomato paste and thyme; cook 1 minute.
Add lentils, peas, broth, remaining salt and pepper; simmer 5 minutes. Mix cornstarch with cold water; stir in and simmer 2 minutes until thick.
Transfer filling to a 2-quart baking dish. Spread sweet potatoes on top; bake 20 minutes until bubbling. Rest 5 minutes.