(CNN) Gabourey Sidibe is getting candid about her weight loss efforts in her upcoming memoir, "This Is Just My Face: Try Not to Stare."
The Academy Award-nominated actress reveals in her new book that she received laproscopic bariatric surgery back in May 2016 after she was diagnosed with Type 2 diabetes.
"I just didn't want to worry," Sidibe told People of her decision. "I truly didn't want to worry about all the effects that go along with diabetes."
Sidibe, 33, said she didn't see surgery as an "easy way out," but as a necessary tool to aid her weight-loss efforts.
The "Empire" actress is working with a nutritionist and trainer, according to the magazine.
"I did not get this surgery to be beautiful," she writes in her book, according to People, who had an excerpt. "I did it so I can walk around comfortably in heels. I want to do a cartwheel. I want not to be in pain every time I walk up a flight of stairs."
Sidibe's book, which will chronicle her rise to fame, will be released in May.
She added: "I was in a war with my body for a long time. If I'd started treating it better sooner, I wouldn't have spent so many years hating myself. But I love my body now."