getTypeCompat

Returns the type of the value at the given index.