Helper indexing method for discrete types.