After reading the below info. I would take the casserole brick and store it in an liquid and airtight container and put it in your luggage. I have brought lots of food with on our trips all dry good, crackers etc in an airtight container I don't think I can mention the name (although it has a lifetime warranty) to protect it from getting crushed.
From the TSA website:
Traveling with Food or Gifts
How to Pack Food and Gift Items
When it comes to bringing items through checkpoints, we've seen just about everything. Traveling with food or gifts is an even bigger challenge. Everyone has favorite foods from home that they want to bring to holiday dinners, or items from their destination that they want to bring back home.
Not sure about what you can and can't bring through the checkpoint? Here's a list of liquid, aerosol and gel items that you should put in your checked bag, ship ahead, or leave at home if they are above the permitted 3.4 oz.
Cranberry sauce
Cologne
Creamy dips and spreads
(cheeses, peanut butter, etc.)
Gift baskets with food items
(salsa, jams and salad dressings)
Gravy
Jams
Jellies
Lotions
Maple syrup
Oils and vinegars
Perfume
Salad dressing
Salsa
Sauces
Snowglobes
Soups
Wine, liquor and beer
Note: You can bring pies and cakes through the security checkpoint, but please be advised that they are subject to additional screening.
Remember! – While wrapped gifts are not prohibited, if a bag alarms our security officers may have to unwrap a gift to take a closer look inside. We recommend passengers wrap gifts after their flight or ship them ahead of time, to avoid the possibility of having to open them during the screening process.
