Eggplant is similar in taste to summer squash, though it's not in the squash family. However, it has the same mild, almost sweet flavor after cooking. In this dish, the eggplant absorbs the other flavors of the cheesy casserole, so using high-quality ingredients matters!