better check for `asArray` and throw exception then.