[SHRINKWRAP-474] Fix bug in getAsType when target is an ArchiveAsset