How does one translate the last line of the following ObjC code to Swift:
CGAffineTransform transform = CGAffineTransformIdentity;
CIFilter *clampFilter = [CIFilter filterWithName:@"CIAffineClamp"];
[clampFilter setValue:[NSValue valueWithBytes:&transform objCType:@encode(CGAffineTransform)] forKey:@"inputTransform"];
The following line
clampFilter.setValue(transform, forKey: "inputTransform")
produces
Type 'CGAffineTransform' does not conform to protocol 'AnyObject'