public static Object[] convertParams(Object[] source,Class<?>[] target){
  Object[] converted=new Object[target.length];
  for (int i=0; i < target.length; i++) {
    converted[i]=convert(source[i],target[i]);
  }
  return converted;
}

public static Object [ ] convertParams ( Object [ ] source , Class < ? > [ ] target ) { Object [ ] converted = new Object [ target . length ] ; for ( int i = 0 ; i < target . length ; i ++ ) { converted [ i ] = convert ( source [ i ] , target [ i ] ) ; } return converted ; }
convert parameters using methods of this utility class
