cancel the unnecessary static_cast

cancel the unnecessary static_cast