Fixed build for when automatic type conversion isn't enabled for ref_ptr<>