For CoreData attribute type transform