return item type of indexing operator