Make ScopedPersistent do type conversion.