Similarly, if you're an inexperienced coder you want to avoid taking extra steps to reach the same result.
Generally you never use casting until you reach more advanced things, and by then the complexity is great enough that can go wrong without having to keep track of types as well.
The one exception is integer division, where you need to turn it into a type that can hold decimals so you do not lose them.
(The following code is AngelScript, though it can be done in C++; however there it is not good form)
Code: c++
- int a = 5;
- float b = float(a) / 2; // The result will be 2.5
- float c = a / 2; // The result will be 2
Other then this you do not really need type conversions till working with polymorphism and pointer arithmatic.
Hopefully all values that are intended to be used for calculations will already be of a type that can hold decimals so that not even this will be needed by beginners.