who starred in rain man and midnight cowboy