.remove("key as variant") clashes with "key as NSObject" and "key as Ptr", both of which seem useful in their own right, so instead of 'variant', "key as String" might come in handy.