Chicken Enchilada Casserole out for 5 hours, safe to eat?

UPDATE! I ate a giant portion ofmit, so did my gf. We reheated itnin the oven for an hour at 425 and brought the internal temp up to 165. We feel great and it was delicious, glad we didnt toss it out.

Last night we ate late dinner of chicken enchilada casserole. Ingredients are chicken, cheese, sour cream, fresh peppers, and enchilada sauce.

It came out of the oven and we immediately ate two servings and as soon as we were done we went to bed with plans to get up in an hour or two and put it in the refrigerator. This was at 10pm and the casserole is in a Pyrex 9x13 baking dish, it was still piping hot, burn you if you touch the bottom of the baking dish hot.

I woke up and remembered at 3am and jumped out of bed and put it in the refrigerator. House was about 70-74 degrees through the night and it was out for 5 hours but still extremely hot when I left it.

Is it safe to eat? Thanks in advance