Casting error
privatestatic Integer recordsToIgnore [];
publicstaticvoid getIgnoredLines(){
recordsToIgnore =new Integer [pconf.getLines().size()];
recordsToIgnore = (Integer)pconf.getLines().toArray();
}
pconf.getLines() is a set of integer elements in my Pconf class, i wanna get it back to an array of integers in this class.. however, when i tried to cast it to an integer i get an error (incompatiable types) can anyone tell me what is wrong? thanks

