I want to compare the array element with number.

```
ArrayList arr_obj = new ArrayList();
double a=1;

arr_obj.Add(1);
arr_obj.Add(2);

for(i = 0; i < arr_obj.Count; i++)
{
    if (arr_obj[i] == a) 
    {
        Debug.Log("ext");
    }
}

```

This code does not work. Any ideas?