SR-8918: warning: conditional cast from 'Any' to 'AnyObject' always succeeds
SR-8918: warning: conditional cast from 'Any' to 'AnyObject' always succeeds

- The bridging from Any to AnyObject was fixed a while ago so use 'as'
  instead of 'as?' casting and remove the redundant else case.

apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation,apple/swift-corelibs-foundation