c style cast to cxx style cast.