Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Playlist Browser with Swift Refactoring Our Code Passing Playlist Objects Using Segues

I'm getting 'AnyObject' is not convertible to 'PlaylistDetailViewController'; did you mean to use 'as!' to force down'

I got this error: 'AnyObject' is not convertible to 'PlaylistDetailViewController'; did you mean to use 'as!' to force downcast?'

Should I replace as with as! from now on?

(I am using Swift 1.2 - new update)

2 Answers

Hi Christine!

Do you know if the existing IOS track and swift courses will be updated to using Xcode 6.3 and Swift 1.2?

Thanks!

Christine Rose
Christine Rose
6,745 Points

Yes. The new update makes you unwrap things you didn't have to before. There are several changes like that in the last update. Try it and see if it compiles.