Ray J nearly developed diabetes.

The singer / reality star made the revelation to TMZ’s Raquel Harper and said that he credits changing his life to his good friend — life and fitness coach Jas Mathur.

via TMZ:

Jas is a walking success story — having once weighed more than 450 lbs — he’s now down to around 210. Jas tells us the secret to helping Ray J starts with a positive mindset and the rest will follow.

As for his workout plan … Jas says he’s got Ray training in the gym 5 days a week and doing cardio 6 to 7 days a week. He’s also had Ray J cut out most of his liquor, wine and junk food.

So far … Ray’s been able to keep up, and docs say he’ll be just fine if he can follow Jas’ plan.

We’re happy to hear he’s in good health.