SAN JOSE, Costa Rica (AP) 鈥 Malcolm-Jamal Warner, who as teenage son Theo Huxtable on 鈥淭he Cosby Show,鈥 was central to a cultural phenomenon that helped define the 1980s, died at age 54 in an accidental drowning in Costa Rica, authorities there said Monday.

Costa Rica鈥檚 Judicial Investigation Department said Warner drowned Sunday afternoon on a beach on Costa Rica鈥檚 Caribbean coast. He was swimming at Playa Cocles in Limon province when a current pulled him deeper into the ocean.

鈥淗e was rescued by people on the beach,鈥 the department's initial report said, but first responders from Costa Rica鈥檚 Red Cross found him without vital signs and he was taken to the morgue.

Warner created many TV moments etched in the memories of Generation X children and their parents, including a pilot-episode argument with Bill Cosby's Cliff Huxtable about money, and another episode where Theo tries to hide his ear piercing from his dad. His Theo was the only son among four daughters in the household of Cliff Huxtable and Phylicia Rashad鈥檚 Clair Huxtable on the NBC sitcom, and he would be one of the prime representations of American teenage boyhood on a show that was the most popular in America for much of its run from 1984 to 1992.

He played the role for eight seasons, appearing in each of the show's 197 episodes and earning an Emmy nomination for supporting actor in a comedy in 1986. For many the lasting image of the character, and of Warner, is of him wearing a badly botched mock designer shirt sewed by his sister Denise, played by Lisa Bonet. The 鈥淕ordon Gartrell鈥 shirt later became a memeable image: Anthony Mackie wore one on 鈥淭he Tonight Show鈥 with Jimmy Fallon and the profile picture on Warner's Instagram shows a toddler sporting one.

NBA hall-of-famer Monday. Johnson said on X that he and his wife are sad to hear of the death of their friend.

鈥淲e were both super fans of the hit 鈥楥osby Show鈥 and continued to follow his career on shows like 鈥楳alcolm and Eddie鈥 and 鈥楾he Resident,鈥欌 Johnson said. 鈥淓very time I ran into Malcolm, we would have deep and fun conversations about basketball, life, and business. He will truly be missed.鈥

Like the rest of the 鈥淐osby Show鈥 cast, Warner had to contend with the against its titular star, whose conviction in a Pennsylvania court

Warner told The Associated Press in 2015 that the show's legacy was 鈥渢arnished.鈥

鈥淢y biggest concern is when it comes to images of people of color on television and film,鈥 Warner said. 鈥淲e've always had 鈥楾he Cosby Show鈥 to hold up against that. And the fact that we no longer have that, that鈥檚 the thing that saddens me the most because in a few generations the Huxtables will have been just a fairy tale.鈥

Representatives for Cosby declined immediate comment.

Warner worked steadily as an actor for more than 40 years. His first major post-"Cosby鈥 role came on the sitcom 鈥淢alcolm & Eddie,鈥 co-starring with comedian Eddie Griffin in the popular series on the defunct UPN network from 1996 to 2000.

鈥淢y heart is heavy right now,鈥 Griffin said on Instagram Monday. 鈥淩est easy my brother for you have Won in life and now you have won forever eternal bliss..鈥

In the 2010s, he starred opposite Tracee Ellis Ross as a family-blending couple for two seasons on the BET sitcom 鈥淩ead Between The Lines.鈥 He also had a role as O.J. Simpson's friend Al Cowlings on 鈥淎merican Crime Story鈥 and was a series regular on Fox's 鈥淭he Resident.鈥

鈥淔irst I met you as Theo with the rest of the world then you were my first TV husband,鈥 Ross said on Instagram. 鈥淢y heart is so so sad. What an actor and friend you were: warm, gentle, present, kind, thoughtful, deep, funny, elegant.鈥

Warner's film roles included the 2008 rom-com 鈥淔ool鈥檚 Gold鈥 with Matthew McConaughey and Kate Hudson. A poet and a musician, for best traditional R&B performance, and was nominated for best spoken word poetry album for 鈥淗iding in Plain View.鈥

Warner also worked as a director, helming episodes of 鈥淢alcolm & Eddie,鈥 鈥淩ead Between the Lines,鈥 鈥淜enan & Kel,鈥 and 鈥淎ll That.鈥

Warner was born in 1970 in Jersey City, New Jersey. His mother, Pamela Warner, reportedly named him after Malcolm X and jazz pianist Jamal. She served as his manager when he began pursuing acting at age 9.

In the early 1980s, he made guest appearances on the TV shows 鈥淢att Houston鈥 鈥 his first credit 鈥 and 鈥淔ame.鈥

Warner was 13 when he landed the role of Theo in an audition after a broad search for the right child actor.

Cosby was a major star at the time, and the show was certain to be widely seen, but few could've predicted the huge, yearslong phenomenon it would become.

He had been married for about 10 years with a daughter about 5 years old, but chose to not publicly disclose their names. Warner鈥檚 representatives declined immediate comment on his death.

His final credits came in TV guest roles, including appearances on 鈥淭he Wonder Years,鈥 鈥淕rown-ish,鈥 and 鈥9-1-1,鈥 where he had a four-episode arc last year.

鈥淚 grew up with a maniacal obsession with not wanting to be one of those 鈥榳here are they now kids,鈥欌 Warner told the AP in 2015. 鈥淚 feel very blessed to be able to have all of these avenues of expression ... to be where I am now and finally at a place where I can let go of that worry about having a life after 鈥楥osby.鈥欌

___

AP Entertainment Writer Andrew Dalton reported from Los Angeles. AP 春色直播 Writer Jocelyn Noveck contributed reporting from New York.

The 春色直播 Press. All rights reserved.