Sofia Vergara is ''obsessed'' with candy.

The 42-year-old actress admits she struggles to keep her sweet tooth under control and is even considering undergoing hypnosis to curb her addiction to treats.

Speaking to Shape magazine, she said: ''I heard about someone in LA who got hypnotised so they wouldn't eat candy. I'm seriously looking into that because I'm obsessed [with candy].''

However, the brunette beauty doesn't let the pounds pile on as she makes sure she hits the gym ''harder'' if she finds herself tucking into too many sugary snacks.

She added: ''When I do indulge, I exercise a bit harder the next day. My workout motto is really simple: No pain, no cake!''

Although, it's only been the past two years that Sofia has felt she needs to exercise more as she believes her body has changed a lot since she has hit 40 and her self-confidence has also started to plummet.

She explained: ''Everyone knows that I've never been into working out. I was always very happy with what I have. Then I hit 40 and I started seeing a softness everywhere on my body.''