Possible to LoadAssetsAsync objects with Interface?

Let’s say you have multiple ScriptableObject classes and some of them use ISomeInterface.

await Addressables.LoadAssetsAsync<ISomeInterface>("_SomeInterfaceLabel", (test) =>
        {
            Debug.Log($"loadedAsset: {test}");
        }).Task;

The provider correctly finds the right objects, but: Exception encountered in operation Resource(SOwithInterface.asset): Object reference not set to an instance of an object

Any way to solve this? Thanks for tips!

If anyone is interested in how to achieve this, I have found one possible solution - it’s possible to use Interface as a filter when loading the locations.

var locations = await Addressables.LoadResourceLocationsAsync("label", typeof(ISomeInterface)).Task;

Then use these locations to load the ScriptableObjects:

await Addressables.LoadAssetsAsync<ScriptableObject>(locations, obj =>
        {
            var iObj = (ISomeInterface) obj;
// ... use interface implementations ...
}).Task;