Is there an easy way to do this that I'm missing? Right now I'm doing this like so:
let doesConformNumber: NSNumber = NSNumber(unsignedChar: UTTypeConformsTo(utiCF, typeCF))
if doesConformNumber.boolValue {
return true
}
If I try to do a simple cast like so:
let testBool: Bool = UTTypeConformsTo(utiCF, typeCF)
I get the error 'Boolean' is not convertible to 'Bool'
Anyone have a cleaner way of doing this conversion?