code: public static short toShortValue(Object o) throws PageException {
  	if (o instanceof Short) return ((Short) o).shortValue();
  	else if (o instanceof CharSequence) return (short) toDoubleValue(o.toString());
  	else if (o instanceof Character) return (short) (((Character) o).charValue());
  	else if (o instanceof Boolean) return (short) ((((Boolean) o).booleanValue()) ? 1 : 0);
  	else if (o instanceof Number) return (((Number) o).shortValue());
  	else if (o instanceof Castable) return (short) ((Castable) o).castToDoubleValue();
  	else if (o instanceof ObjectWrap) return toShortValue(((ObjectWrap) o).getEmbededObject());
  
  	throw new CasterException(o, "short");
      }
docs: cast a Object to a short value (primitive value type)
  
  @param o Object to cast
  @return casted short value
  @throws PageException