Tom Hanks is just a phenomenal actor. This much is pretty much undisputed by anybody who's paying attention. Part of the reason that he is so great is that he has an uncanny ability to simply inhabit any role he takes on.
The following story contains so many spoilers for Star Wars: The Last Jedi. For real, turn and run if you haven't yet seen the movie, and come back after you have.