Implements operator[] for value objects.