Pineapple Express star to play Allen Ginsberg in