A struggle with his health motivated former 'Seinfeld' star Michael Richards to pen his forthcoming memoir "Entrances and Exits."

Los Angeles Premiere Of Netflix's
(Photo by Amy Sussman/Getty Images)

In the new memoir, the actor, famously known for his portrayal of Cosmo Kramer on USA Network's Seinfeld (1989-1999,) recounted his experience of being diagnosed with stage 1 prostate cancer in 2018. Reflecting on his diagnosis, Richards shared with PEOPLE in an interview published Thursday how he "thought, well, this is my time. I'm ready to go." 

RELATED: Lisa Kudrow Reveals Shocking Conversation with Jerry Seinfeld at a Party 

Richards, 74, shared that his determination to overcome the illness was fueled by his son, Antonio, whom he shares with his wife Beth Skipp. Recalling the pivotal moment, he revealed, "But then my son came to mind just a few seconds later, and I heard myself saying, 'I've got a 9-year-old and I'd like to be around for him.' 'Is there any way I can get a little more life going?' "

Richards is also the father of daughter Sophia with his ex-wife Cathleen Lyons. 

Jerry Seinfeld Hosts Inaugural Los Angeles Fatherhood Lunch To Benefit Baby Buggy
(Photo by Michael Buckner/Getty Images for Baby Buggy)

Richards revealed that his cancer required swift containment, leading to a decision for him to undergo surgery to remove his entire prostate. Reflecting on the urgency of the situation, he elaborated, "I had to go for the full surgery. If I hadn't, I probably would have been dead in about eight months."

RELATED: Emily Ratajkowski Calls Ex-husband 'Ugly' In This TikTok Trend? 

In his memoir, he named the "over 40 journals I'd kept over the years and wanted to do a full review of my life. I'm turning 75, so maybe wanting to do that is something that comes with being my age." 

"I wanted to connect with feelings and memory," the comedian continued. "I'm surprised at how much I was able to remember."

The book will also detail the significant career setback after his racist outburst during a 2006 stand-up comedy performance at the Laugh Factory in Hollywood. 

 

(Photo by Stefanie Deutsch/Getty Images)
 (Photo by Stefanie Deutsch/Getty Images)

Richards admitted how he "was immediately sorry the moment I said it onstage," and afterwards, confessed he does not expect to be embraced after the tirade. "I'm not looking for a comeback," he said.

The California native described how he "completely stepped away from show business" because "It was time to disappear and finally pay attention to where all of my anger was coming from."

"Entrances and Exits" is available for purchase on June 4.