Question: why should unnecessary typecasting be avoided?
Answer: Other types of cast can lose information (a long integer type to a short integer type). These cases of risk (whether of exception or a more serious error) and of expense are all reasons to avoid casting.