How old was James Dean when he died?

History Trivia Question: How old was James Dean when he died?