Question: I'm trying to create a mutable array of two integers

```
@interface ViewController ()
{
    NSMutableArray *myArray;  
}

```

initialized with capacity of two objects

```
- (void)viewDidLoad
{
    [super viewDidLoad];
    myArray = [[NSMutableArray alloc]initWithCapacity:2];
    [self addIntToArray];
}

```

and when I try to add an integer to my array

```
- (void)addIntToArray
{
    [myArray addObject:3];
}

```

I get the following error, and despite having run into this issue before and finding a workaround was unable to do so now.

```
Implicit conversion of 'int' to 'id' is disallowed in ARC.

```

I tried casting my `int` to `id` and received an error stating I could not do that. I also tried initializing the array with `init` only, and still was unable to add the integer to the array. Would you please let me know how to implement the functionality I am trying to do. Thank you.

Answer: 
`NSArray` can hold objects only. For storing numerical values, consider wrapping the `int` into an `NSNumber` object.
To Store any int in Array use

```
[yourArray addObject:[NSNumber numberWithInt:YOUR_VALUE]];

```