Grammer, 54, said at a news conference Saturday that after Fox canceled his sitcom "Back" in 2008, he suffered a heart attack that doctors attributed to stress in his life, the Los Angeles Times reported.
"There's obviously some connection to one's life and the stress that takes place in one's life," Grammer said. "When they examined my arteries, there was no blocked arteries, I had no cholesterol buildup. I had an event that they think was stress-related."
Grammer, who will star in the new ABC comedy "Hank," said his heart attack may ultimately prove to have been beneficial to his health and his TV career.
"It ended up being probably a great thing in my life. I'm healthier, stronger, faster. I'm somewhat bionic now," said Grammer, whose other TV credits include "Cheers," "Frasier" and voice work on "The Simpsons."