ftynse wrote: `unwrapList` can only unwrap C API data structures to their C++ counterpart, e.g. `MlirAttribute` to `mlir::Attribute`. It will not magically downcast attributes to a specific type. You will have to do that yourself. https://github.com/llvm/llvm-project/pull/83992