Oops static_cast not allowed