Objective-C Type Error Between value from Core Data
===

I am developing an iPhone application and I am a quite beginner.

I have one table in my Core Data with one field called userId it is an integer.

I successfully fetched it and assigned it to an id with the following code:

    id userId2 = [info valueForKey:@"userId"];

info is my NSManagedObject and userId2 is an id.
Now i want to conver userId2 to a string. I read that I can directly do the following:

    NSString *userId3 = userId2;

However, when I perform an if check between a string and userId3, even if they have the same value, check fails.

Any suggestions?

One more thing, xcode says userId is not a CFString in the debug mode.

Thanks.