export declare function cast<ToType>(resource: unknown): ToType;
