Add overloads for GetIndexAsObject/GetIndexAsUntyped

This saves from unncessary boxing