Question: In which title and in what year did James Corden first play the role of Timms in a film?
Answer: In 2006, Corden played the role of Timms in The History Boys.