The 33-year-old 'Forgetting Sarah Marshall' actor will star as the Pulitzer Prize-nominated writer, who committed suicide in 2008, in the movie titled 'The End of the Tour' reported Huffington Post online.
Jesse Eisenberg is also attached to the film and will play Rolling Stone reporter David Lipsky.
The script was adapted from Lipsky's book, 'Although Of Course You End Up Becoming Yourself: A Road Trip With David Foster Wallace'.