Implemented getByX where X is an indexed type