public <Z> GenericTranscodeRequest<A, T, Z> as(Class<Z> resourceClass) {
                GenericTranscodeRequest<A, T, Z> result =
                        optionsApplier.apply(new GenericTranscodeRequest<A, T, Z>(context, glide, modelClass,
                                modelLoader, dataClass, resourceClass, requestTracker, lifecycle, optionsApplier));
                if (providedModel) {
                    result.load(model);
                }
                return result;
            }
Sets the resource class that will be loaded.

@param resourceClass The class of the resource that will be loaded.
@param <Z> The type of the resource that will be loaded.
@return This request builder.
core/src/main/java/com/bumptech/glide/RequestManager.java