I want to convert an objective c code to objective cpp and use it in my application. Given the following code:

```
        CFTypeRef dynamicValue = (__bridge CFTypeRef)([[NSBundle bundleWithPath:aStr] objectForInfoDictionaryKey: @"CFPlugInDynamicRegistration"]);

        BOOL removeFlag = NO;

        if(dynamicValue == nil)
        {
            removeFlag = NO;
        }
        else if( CFGetTypeID(dynamicValue) == CFBooleanGetTypeID()  )
        {
            removeFlag = CFBooleanGetValue(dynamicValue);
        }
        else if( CFGetTypeID(dynamicValue) == CFStringGetTypeID()  )
        {
            removeFlag = ( [[(__bridge NSString*)dynamicValue lowercaseString] isEqualToString:@"yes"] ? YES:NO);
        }

        if( removeFlag )
        {       
            [unloadedArray addObject:aStr];
            [sortedArray removeObjectAtIndex:hoge];
        }

```

I get an error when changing the file name from file.m to file.mm and building: "no matching function for call to 'CFBooleanGetValue'"

I tried to `#include <CoreFoundation/CFNumber.h>` but I get the same error (I guess it's an `ifdef` issue).

Do you know any way I can cast without the missing function? Should I try to use the same function anyway?