On 3 February 2014 17:37, Graziano Servizi wrote: > How could this (included) very short code work? > It isn't a NOT SAFE conversion that made inside void fun? (This is not a question about GCC, so it would be better in a general C++ forum.) static_cast does not check for safe conversions, it's your responsibility to use it correctly. If you aren't sure the conversion is safe then use dynamic_cast.