Robert Pattinson var 22 år gammel da han spillede Cedric Diggory i Harry Potter and the Goblet of Fire, udgivet i 2005.