add static_cast to operators