It isn't possible to cast an object[]
to a T[]
where T
is an abitrary class.
But you can use
Offer[] array = Arrays.copyOf(a, a.length, Offer[].class);
Where a is the returned array from
extras.getSerializable(PublicMacros.OFFERS_LIST);
Or you can iterate over each element in the array and cast each one for its own.