*James Avery is headed to Genoa City.


The veteran actor, best known from his role on “The Fresh Prince of Bel Air,” will join the CBS soap “The Young and the Restless” for a guest run as a judge, reports EW.

Avery — who also played a judge on “Fresh Prince,” will begin filming today for episodes that will begin airing Oct. 12.

Avery’s most recent credits include roles on “Grey’s Anatomy” and “Harry’s Law.” He also had a recurring role on “The Closer.”