Indexing a multitype, mixed type

Can you explain how indexing a mixed type does work?
Lets say I have a collection with the key answer.
Answer is an object of question: string and value: string| number| array[string|number]