@Override
    @Deprecated
    default int allocate(Object object, Bucket<Object> bucket) {
        return allocate(bucket);
    }
Casts this {@link GenericPartitioningStrategy} to a {@link PartitioningStrategy} of type T.

@param <T> the type
@return a casted strategy
helper/src/main/java/me/lucko/helper/bucket/partitioning/GenericPartitioningStrategy.java