Template-based NanAssignPersistent