It's a common misconception, but David Yates had nothing to do with casting Emma Watson as Hermione Granger. The credit belongs entirely to Chris Columbus, director of Harry Potter and the Philosopher's Stone (2001) and Chamber of Secrets (2002).
Yates directed the final four films and deserves immense credit for maturing the series' tone, but the Hermione we know was already fully formed by the time he arrived. Watson's casting remains one of Columbus's sharpest instincts.