Casey Wilson is addressing her family’s struggles with Celiac disease.

The “Happy Endings” and “Atypical” actress penned a personal essay in the New York Times. She detailed how the discovery of her eldest son’s Celiac disease helped make sense of years of confusion and heartache.

“I am doing my best, and have always been doing my best under challenging and painful circumstances,” Wilson, 39, wrote, “and I’m comforted by the fact that following my instincts got us here.”

RELATED: Casey Wilson Says Getting Botox ‘Paralyzed Half My Face’

By two years of age, her eldest son Max began dealing with depression, lethargy, mood swings, and an inability to connect with other children. Wilson and her husband David Caspe would blame Max’s behaviour on a lack of sleep and/or low blood sugar. Really, Wilson blamed their parenting.

“I hated myself for the excuses my husband and I would make for our son,” Wilson admitted. “We were left wondering which version of our child was his true self. And I was left wondering if I had somehow managed to dim his bright light.”

By the time Max was three years old, those excuses were not holding up as well as they used to.

“My wonderful husband and I went through this together, but separately. He was optimistically convinced we just needed to figure out what was going on, and then we would fix it. Done and done,” she continued. “At no point did he look inward and blame himself.

“I maintained the situation was absolutely dire and it was my fault, that what needed fixing was me,” Wilson admitted.

RELATED: Casey Wilson And Husband David Caspe Welcome Baby No. 2!

Max one day fractured his leg and later suffered a seizure while in the car. This led the couple to get blood work done. The blood work determined that Max had Celiac disease. It is a genetic, auto-immune condition in which the body is negatively affected by eating gluten.

“It was a shock, followed by unimaginable relief. We finally had a diagnosis, and in the grand scheme of things it was a very manageable one,” Wilson said. “We felt lucky it was not something worse.

“In six months, almost to the day, his truer self emerged,” she exclaimed. “His essence is the very same. But he is now an outwardly thriving, happy four-year-old who is exploding with creativity and bursting with life.”

Click to View Gallery
Most Aww-Worthy Celebrity Photos