Preheat your oven to 350°F / 175°C.
In a large saucepan, combine the vegetable broth, rinsed lentils, water, and minced garlic.
Bring the mixture to a boil, then reduce the heat, cover, and simmer for 20 minutes.
Add the carrots, parsnips, and onions to the lentils. Return to a boil, then reduce the heat again and simmer, covered, for another 10 to 15 minutes, or until the vegetables and lentils are just tender.
While the lentil mixture simmers, prepare the topping.
In a separate large saucepan, cover the potatoes and whole garlic cloves with lightly salted water.
Bring to a boil and cook for 20 to 25 minutes, or until the potatoes are very tender.
Drain well.
Mash the potatoes and garlic with a potato masher or an electric mixer on low speed.
Add the butter, then gradually beat in the milk until the potatoes are light and fluffy.
Stir in the Parmesan cheese and basil.
Season with salt and pepper to taste.
Back to the filling: Remove the lentil saucepan from the heat and stir in the shredded chard or kale until it begins to wilt.
Stir in the undrained diced tomatoes, tomato paste, and basil.
Transfer the finished lentil mixture to an ungreased 2 to 2.5-quart casserole dish and spread it into an even layer.
Carefully spoon the cheesy potato mixture over the lentil filling, spreading it evenly to cover the entire surface.
Bake, uncovered, for about 35 minutes, or until the filling is bubbly and the topping is heated through and lightly golden.
Let it rest for a few minutes before serving.