+ 1
What is cast operator?
cast operator
2 Answers
+ 1
A cast is a special operator that forces one data type to be converted into another. As an operator, a cast is unary and has the same precedence as any other unary operator
0
Basically the cast operator is used to convert numeric values from one numeric type to another or to change an object reference to a compatible type.