From Working with Cocoa Frameworks (emphasis added):
Numbers
Swift bridges between the
NSNumber
class and Swift numeric types, includingInt
,Double
, andBool
.You can create an
NSNumber
object by casting a Swift number value using theas
operator. BecauseNSNumber
can contain a variety of different types, you must use theas?
operator when casting to a Swift number type.