Why is it needed to type cast with long long at 4:38?

why is it needed to type cast with long long at 4:38?
why will the no overflow as bhaiya mentioned?