I am having an issue with my select form. When I select any option, the value that is being passed is of a string type, instead of number type. Here is my object that I use for ng-repeat:

```
$scope.apples ={
         0:'Apple0',
         1:'Apple1',
         2:'Apple2',
         3:'Apple3'
};

```

And here is my select, which passes string, instead of number:

```
 <select ng-model="test" ng-options="key as value for (key,value) in apples"></select>

```

Any ideas?