Rap legend MC Hammer was arrested yesterday on charges of obstructing an officer, but claims he was racially profiled by the police.

Hammer says an officer pulled out his gun and randomly asked him, "Are you on parole or probation?"

He was booked and released from Santa Rita Jail in Dublin, CA after being taken in for obstructing an officer in the performance of his duties and resisting an officer.

Hammer went on Twitter this morning and had a different account of events. He claims the encounter began when a cop tapped on his car window and asked him, "Are you on parole or probation?"

The rapper thought it was all a joke until "he pulled out his guns, blew his whistle and yelled for help."

Hammer summed it up with the tweet, "only thing more dangerous than a scared man with a gun, is a scared man with an agenda, a gun and a badge. I was citied for obstruction smh."

Source: tmz.com