In a saucepan, cook onion, corn and squash. Mix the remaining ingredients together in a large bowl. Combine mixtures and pour into a greased casserole dish.Bake at 350 degrees for about 30 min. or until cooked on sides. Place grated cheese on top.Place back in the oven until cheese is melted.