static < S , T > T adapt ( S object , Class < ? extends T > resultClass ) { return TypeAdapter . < S , T > doCreateAdapter ( resultClass , AdapterMethodValidator . newInstance ( resultClass , object ) ) . adapt ( object ) ; }
Transform a given object into an instance of the specified type .