code: func CheckType(l *State, index int, t Type) {
  	if l.TypeOf(index) != t {
  		tagError(l, index, t)
  	}
  }
docs: // CheckType checks whether the function argument at index has type t. See Type for the encoding of types for t.