Tom Hanks once famously noted as Forrest Gump: "Life is like a box of chocolates." Now, it turns out, Hanks has to layoff those chocolates.

The actor revealed on David Letterman's late-night show Monday that he has been diagnosed with a "controllable" form of Type 2 diabetes.

"I went to the doctor, and he said, 'You know those high blood sugar numbers you've been dealing with since you were 36? Well, you've graduated! You've got Type 2 diabetes, young man,' " Hanks said on the show, while appearing to promote his new film "Captain Phillips."

The revelation came after Letterman complimented the slimmed down Hanks. "You look wonderful," Letterman said. "You look like a kid for God's sakes."

"I'm maintaining the temple," Hanks replied.

Hanks also noted that his doctor said he could shake the Type 2 diabetes by dropping down to his high school weight.

"I said, 'Well, I'm going to have Type 2 diabetes," Hanks said. "I weighed 96 pounds in high school. I was a very skinny boy."