Since OData can define a nullable bool property that means the return type BOOL would not be sufficient.
Therefore the function returns a boxed bool value (with values YES/NO) or nil, if the property value is nullable and stores "null".