/**
  * Get the enumeration value for the type of this value.
  *
  * @return value for this type, one of TNIL, TBOOLEAN, TNUMBER, TSTRING, TTABLE, TFUNCTION,
  *     TUSERDATA, TTHREAD
  */
 public int type() {
   return val.type();
 }