code: func toPreparedQuery(wrapped interface{}) *structs.PreparedQuery {
  	if wrapped == nil {
  		return nil
  	}
  	return wrapped.(*queryWrapper).PreparedQuery
  }
docs: // toPreparedQuery unwraps the internal form of a prepared query and returns
  // the regular struct.