# MyLocations exercise on page 211

**URL:** <https://forums.kodeco.com/t/mylocations-exercise-on-page-211/28977>\
**Category:** iOS Apprentice\
**Created:** [April 27, 2017, 1:55pm UTC](https://forums.kodeco.com/t/mylocations-exercise-on-page-211/28977 "2017-04-27T13:55:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![syagaev](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syagaev/32/65086_2.png) [@syagaev](https://forums.kodeco.com/u/syagaev)\
**Post date:** [April 27, 2017, 1:55pm UTC](https://forums.kodeco.com/t/mylocations-exercise-on-page-211/28977/1 "2017-04-27T13:55:12Z")

</div>

Hello, i have stucked, can you please help me with this.

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/9/f/9f7872b28c5537139454180b09990e87179c8252.png) As i understood the dictionary[“inserted”] return an array of objects type any, so i would like to downcast these array to [Location] and the just addAnnotations on the mapView, but xcode says that i couldn’t do this, i don’t understand why, sorry for my English, i’m only learning it. Thank you for answer.

---

<div class="post-metadata">

**Author:** ![hollance](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hollance/32/109009_2.png) [@hollance](https://forums.kodeco.com/u/hollance)\
**Post date:** [May 1, 2017, 8:38am UTC](https://forums.kodeco.com/t/mylocations-exercise-on-page-211/28977/2 "2017-05-01T08:38:52Z")

</div>

Almost correct. 🙂 The dictionary does not return an array but a _set_. This is like an array but each object can appear only once and the objects in the set do not appear in any particular order.

Check out the documentation for `Set` in the Xcode documentation browser.
