title: How to convert NSDecimalNumber to NSNumber
body: <p>How to convert NSDecimalNumber To NSNumber? I have a NSDecimalNumber created inside a method which have to return a NSNumber object which can be checked later with [ ... isKindOfClass:[NSNumber class]]</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      // Override point for customization after application launch.
  
      id rn = [self haveToBeNSNumber];
  
      if ([rn isKindOfClass:[NSNumber class]]) {
  
          NSLog(@"It's NSNumber class object");
      }
  
      return YES;
  }
  
  - (NSNumber *)haveToBeNSNumber {
  
      NSDecimalNumber *dNumber = [NSDecimalNumber decimalNumberWithString:@"123.22"];
  
      return dNumber;
  
  }
  </code></pre>