Robin Williams addressed the topic of suicide in a chilling movie clip, five years before he ended up taking his own life. On Monday, the 63-year-old actor was found dead in his California home.

The cause of death is believed to be “suicide due to asphyxia,” according to the Marin County Sheriff’s Office. The office said “a comprehensive investigation must be completed before a final determination is made.” A forensic examination is currently scheduled for Tuesday, and toxicology testing will be conducted afterward.

“Robin Williams passed away this morning. He has been battling severe depression as of late,” his rep said in a statement. “This is a tragic and sudden loss. The family respectfully asks for their privacy as they grieve during this very difficult time.”

In 2009, Williams played the role of Lance Clayton in the film “World’s Greatest Dad.” The comedy-drama concerns a high school teacher who attracts overwhelming media and community attention after covering up the truth about his son’s accidental death with a phony suicide note.

In a clip from the film, Williams says, “If you’re that depressed, reach out to someone and remember suicide is a permanent solution to temporary problems.” It is a chilling message, as the actor would apparently end his own life five years later.

Williams, known for his roles in "Dead Poets Society," “Mrs. Doubtfire,” “Good Will Hunting” and “Jumanji,” among many other films, had a history of addiction problems and was back in rehab as recently as July to “focus on a continued commitment to sobriety.”

A press conference on the investigation into Williams’ death is scheduled for Tuesday at 11 a.m. PDT at the Marin sheriff’s office in San Rafael, California.