Make cached_index allow for type conversion when forwarding args to cache.