code: func ToBytes(v Val) []byte {
  	if v == nil {
  		return nil
  	}
  	b, ok := v.([]byte)
  	if !ok {
  		ba, ok := v.(BytesAddress)
  		if !ok {
  			panic(fmt.Sprintf("unsupported value type %T", v))
  		}
  		b = ba.Address()
  	}
  	return b
  }
docs: // ToBytes turns the Val into bytes