Less than two weeks before he is to be sentenced, Bill Cosby wants the judge overseeing his case to step aside over an alleged personal conflict involving former Montgomery County District Attorney Bruce Castor Jr.

Lawyers for Cosby filed a motion Tuesday in the Montgomery County Court of Common Pleas seeking “disclosures regarding prior interactions with Bruce Castor,” asking the court to vacate its 2016 ruling on Cosby’s petition for writ of habeas corpus and arguing that Judge Steven T. O’Neill recuse from the case.