Added casting types from NSNumber to atomic data types