why should unnecessary typecasting be avoided?
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.