code: public static short[] asShortTypeArray(List<Short> input) {
  		short[] result = new short[input.size()];
  
  		for (int i = 0; i < result.length; i++) {
  			result[i] = input.get(i);
  		}
  
  		return result;
  	}
docs: As short type array.
  
  @param input the input
  @return the short[]