The actor plays mathematician Hal in a cast that also includes the Ayo Edebiri, Don Cheadle, and Kara Young.