Static cast

In C++ type conversion, the codice_1 operator performs an explicit type conversion.
Syntax.
static_cast<type> (object);
The "type" parameter must be a data type to which "object" can be converted via a known method, whether it be a builtin or a cast. The type can be a reference or an enumerator.
All types of conversions that are well-defined and allowed by the compiler are performed using codice_1.
The codice_3 operator can be used for operations such as:
Although codice_1 conversions are checked at compile time to prevent obvious incompatibilities, no run-time type check is performed that would prevent a cast between incompatible data types, such as pointers. Also, the result of a codice_1 from a pointer of a virtual base class to a pointer of a derived class is undefined.