Never use == when comparing classes.  Use isKindOfClass in this case.