By Natalie Abrams
Updated August 28, 2014 at 08:29 PM EDT
Vincent Sandoval/FilmMagic

Psych-os will be happy about this one: Corbin Bernsen will guest-star in an upcoming episode of CBS’ new drama Scorpion.

Scorpion stars Elyes Gabel as Walter O’Brien, an eccentric genius who assembles a team of super-geniuses to combat the complex threats of the modern age.

EW has learned exclusively that the Psych star will play Bob Connelly, a Las Vegas casino owner who turns to Walter’s team when his profit margins start to shrink. But Walter will discover that underneath the glitz and glamor, all is not as it seems with Connelly and his casino.

The drama, which also stars Katharine McPhee and Eddie Kaye Thomas, will premiere Sept. 22 at 9 p.m. on CBS. Bernsen’s episode is slated to air in October.