correct me if i'm wrong (i'm not a c++ programmer), but as far as i can surmise from the internets, this static_cast business is basically just a normal c (cast) but whinges with an error when the conversion is unsafe, instead of just a warning.