 
     func testShouldNotMatchNonNilTypes() {
         expect(true as Bool?).toNot(beFalsy())
-        expect(1 as Int?).toNot(beFalsy())
+        #if _runtime(_ObjC)
+            expect(1 as Int?).toNot(beFalsy())
+        #else
+            expect(1 as NSNumber?).toNot(beFalsy())
+        #endif
     }
 
     func testShouldMatchFalse() {

import XCTest
import Nimble

enum ConvertsToBool : ExpressibleByBooleanLiteral, CustomStringConvertible {
    case trueLike, falseLike

    func testShouldNotMatchNilTypes() {
        expect(false as Bool?).toNot(beTruthy())
        expect(nil as Bool?).toNot(beTruthy())
        #if _runtime(_ObjC)
            expect(nil as Int?).toNot(beTruthy())
        #else
            expect(nil as NSNumber?).toNot(beTruthy())
        #endif
    }

    func testShouldNotMatchFalse() {
