# # #Implicit Conversions Implicit conversion
* can be freely converted between the basic types;
* Can convert any type of pointer to void pointer;
* Sub-class pointer can be converted to base class pointer;
* Will produce warning
# # #static_cast静态转换
* Similar to implicit cast
* can be freely converted between sub-class base class pointer
* No run-time check
# # #dynamic_cast动态转换
* Generally used for polymorphism
* will check if pointer points to valid object
# # #reinterpret_cast
* Can be converted between any type of pointer
* No check, very dangerous
# # #const_cast
* can be converted between const and non const pointer
# # #C Style cast
(type) val or type (val), converted in the following order of precedence:
* Const_cast
* STATIC_CAST (though ignoring access restrictions
* STATIC_CAST (see above) and then const_cast
* Reinterpret_cast
* Reinterpret_cast, then const_cast
Type conversions in C + + types conversion