code: func (self *_runtime) toObject(value Value) *_object {
  	switch value.kind {
  	case valueEmpty, valueUndefined, valueNull:
  		panic(self.panicTypeError())
  	case valueBoolean:
  		return self.newBoolean(value)
  	case valueString:
  		return self.newString(value)
  	case valueNumber:
  		return self.newNumber(value)
  	case valueObject:
  		return value._object()
  	}
  	panic(self.panicTypeError())
  }
docs: // toObject