Remove static_cast optimization for Value's operator shared_ptr<T>