org.apache.yoko.orb.OB.Assert._OB_assert(index < length_ && primitive_);
switch (contentKind_.value()) {
case org.omg.CORBA.TCKind._tk_short: {
short[] buf = (short[]) buf_;
any.replace(contentType_, new Integer(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_long: {
int[] buf = (int[]) buf_;