change static_cast