19.8. Safer Typecasting Using ANSI C++ Typecasts

[ fromfile: types.xml id: ansicast ]

Table 19.3.  ANSI Typecasts

static_cast<type>(expr) for converting between related types
const_cast<type> expr for casting away const or volatile
dynamic_cast<type>(expr) for safe navigation through an inheritance hierarchy
reinterpret_cast<type>(expr) for type conversions of pointers between unrelated types