Shepherd is set to appear in the upcoming sequel of this year's cop comedy Ride Along, reports Deadline.
The first movie followed Kevin Hart's security guard character who goes on a police patrol ride with girlfriend Angela's (Tika Sumpter) brother (Ice Cube) to prove he is worthy of marrying Angela.
Shepherd will be joining new cast members Ken Jeong, Olivia Munn and Benjamin Bratt.
Jeong is cast as a woman-crazy computer hacker who becomes an asset to the criminal case at the centre of the sequel.
Last month, Shepherd announced her exit from The View after seven years.
She shared: "I am extremely grateful to Barbara Walters and Bill Geddie for giving me the opportunity. I look forward to the business opportunities that lay ahead for me and I am incredibly grateful to my View family and my fans for supporting me on this journey."
Watch the trailer for Ride Along below: