GetIndex for objects