private List < Integer > asIntList ( Object value ) { int [ ] values = ( int [ ] ) value ; List < Integer > list = new ArrayList < Integer > ( values . length ) ; for ( int integer : values ) { list . add ( integer ) ; } return list ; }
Returns value as an Integer List .