As you have already found (your code has some inconsistency and causes other errors, it is better to update it), you cannot use as -casting to indicate the type of Array literals as NSFastEnumeration .
You need to find the correct class that matches NSFastEnumeration , in your case it is NSArray .
Usually write something like this:
changeRequest?.addAssets([] as NSArray)
source share