Eliminate warning on Xcode 5.

The warning was: "Case value not in enumerated type "NSURLSessionTaskState".

Xcode does not know the type of the enum, but wants to. So it guesses
NSURLSessonTaskState, but gets it wrong. So be explicit about the type
of object we're dealing with here.