How can I convert an Object to a Long?
I have a method that returns an ArrayList of either Integer Objects or Long Objects, so it returns just an ArrayList of Objects. I need to convert those Objects to Longs so I can use them. I've tried parsing and casting, but both cause compiler errors.