please use `static_cast` instead of `C cast`.