Tyler Perry to Play Alex Cross in Rob Cohen-Directed Film

Tyler Perry Headshot 2011
Stephen Lovekin/Getty Images

NEW YORK - OCTOBER 25:  Director Tyler Perry attends the premiere of "For Colored Girls" at Ziegfeld Theatre on October 25, 2010 in New York City.

The Madea mastermind will take on the James Patterson-created character, previously played in two movies by Morgan Freeman.

For his next gig, Tyler Perry is losing the wig and donning the suit of detective-psychologist Alex Cross.

QED is mounting a production based on the popular James Patterson character that has already been portrayed by Morgan Freeman in two previous studio movies.

Rob Cohen is on board to direct the new take, which has no distribution. QED will be selling worldwide rights in a few weeks at European Film Market in Berlin.

Patterson and Kerry Williamson wrote a draft of the script, which will be polished by Marc Moss.

Patterson's creation has proved to be an enduring one since his debut in 1993's Along Came a Spider. His 18th novel featuring the character will be released later this year.

Idris Elba was due to portray the detective in an indie due to be directed by David Twohy, but that adaptation appears to be shelved for now.

Perry is best known for his voluminous work as a director-screenwriter-producer of urban dramas and for playing the outspoken black female character of Madea in many of his movies. This would be the first major role Perry has undertaken that doesn't involve one of his projects.

Cohen last directed The Mummy: Tomb of the Dragon Emperor.

Both are repped by WME.