can you use c++ way of casting, i.e. static_cast?