Is it possible to save a [Any]?

Say I have an Array with multiple types: [“Hello World”, true, 3] (String, Bool, Int)
Would I be able to save the above in parse? I have attempted to do the following with no avail:

struct Template: ParseObject {
    var originalData: Data?
    var objectId: String?
    var createdAt: Date?
    var updatedAt: Date?
    var ACL: ParseACL?
    
    var template: [String]?
    var templateData: [Any]?
}

Xcode proceeded to yell the following at me:

How would I go about (or is it even possible) to save a [Any]

Type erasure is also mentioned in the docs: Query Structure Reference

1 Like