James McAvoy, 47, played Professor Charles Xavier in X-Men: First Class in 2011, and reprised the role in subsequent installments of the series, which were widely praised