Bill Cosby Heads to Court as Lawyers Try to Get Sexual Assault Charges Dropped

The embattled comedian is charged with drugging and sexually assaulting a woman at his mansion 12 years ago.

Comedian Bill Cosby headed into a Pennsylvania court Tuesday, where his attorneys are waging an intense battle to dismiss criminal assault charges against the embattled celebrity.

Dressed in a tweed suit and wearing a tie, Cosby appeared clear-eyed and clean-shaven as his staff helped him into a Norristown courthouse.

Read: Beverly Johnson Reacts to Bill Cosby Deposition: 'I Wasn't Surprised. It Is Sad.'

It was a stark contrast from the star's earlier appearance at the court, when he appeared to have trouble walking and wore a bulky sweater and a bushy beard.

Cosby, 78, is charged with three counts of aggravated indecent assault for a 2004 sexual encounter with Andrea Constand, a former Temple University basketball staffer.

His attorney, Brian Monagle, called former prosecutor Bruce Castor to the stand Tuesday and questioned him about his decision to not file charges against Cosby at the time of the alleged attack.

Castor testified that Constand had "credibility issues" and would fare better if she filed a civil suit against Cosby.

The former prosecutor said his case lacked physical evidence against the comedian and that the alleged victim had undermined her credibility by first contacting an attorney before reporting the incident to police.

Read: Bill Cosby's Attorney Says He is Going 'Blind' and is the Victim of Newly Elected, Politically Minded D.A.

"I decided that there was insufficient credible evidence on which any charge related to Mr. Cosby as alleged by Ms. Constand could be proven beyond a reasonable doubt," Castor said.

"I did not believe it was just to go forward with a criminal prosecution but I wanted there to be some determination of justice," he said, according to NBC News.

Castor also said he had hoped Constand would become a "millionaire" by suing Cosby. The civil case was eventually settled for an undisclosed sum.

Montgomery County District Attorney Kevin Steele, who defeated Castor in an election several months ago, had promised to prosecute of Cosby.

He filed charges in December, shortly before the statute of limitations was to expire.

It is the only criminal case filed against Cosby, who has been publicly accused by more than 50 women of unwanted sexual contact, sometimes after being given drugs and alcohol by the comedian.

The statute of limitations has run out for most of those accusations.

Cosby has denied all wrongdoing and has filed defamation suits against seven of his accusers.

Watch: Bill Cosby Briefly Appears in Court, Bail Set at $1 Million