private Long[] convertObjectArrToLongArr(final Object[] list) {
        final Long[] toReturn = new Long[list.length];
        for(int i = 0; i < list.length; i++) {
            toReturn[i] = ((Number)list[i]).longValue();
        }
        return toReturn;
    }
private Long [ ] convertObjectArrToLongArr ( final Object [ ] list ) { final Long [ ] toReturn = new Long [ list . length ] ; for ( int i = 0 ; i < list . length ; i ++ ) { toReturn [ i ] = ( ( Number ) list [ i ] ) . longValue ( ) ; } return toReturn ; }
/*
Used because ObjectMapper does not always read in longs as longs (can be integer)
When it is a Map<String,Object>