public static Type[] toTypes(Class<?>[] classes){
  if (classes == null || classes.length == 0)   return new Type[0];
  Type[] types=new Type[classes.length];
  for (int i=0; i < classes.length; i++) {
    types[i]=Type.getType(classes[i]);
  }
  return types;
}

public static Type [ ] toTypes ( Class < ? > [ ] classes ) { if ( classes == null || classes . length == 0 ) return new Type [ 0 ] ; Type [ ] types = new Type [ classes . length ] ; for ( int i = 0 ; i < classes . length ; i ++ ) { types [ i ] = Type . getType ( classes [ i ] ) ; } return types ; }
convert a clas array to a type array
