How can I cast as a game object? Addressable LoadResourceLocationsAsync locationsAsync

public async Task LoadLocationsAsync(string address) where T : Object
{
var handle = Addressables.LoadResourceLocationsAsync(address);
var locations = await handle.Task;

        Addressables.InstantiateAsync(locations[0]);

        return locations[0].Data as T;
    }

In the sample code above, the instance is well created, but location[0].Data is null.
I want to cast as GameObject and pass the return value. What should I do?

Simply replace as T with as GameObject

public async Task<T> LoadLocationsAsync<T>(string address) where T : Object
     {
         var handle = Addressables.LoadResourceLocationsAsync(address);
         var locations = await handle.Task;
 
         Addressables.InstantiateAsync(locations[0]);
 
         return locations[0].Data as GameObject;
     }