Casting CustomError to ErrorType to NSError loses userInfo

Trying to cast a CustomError to compatible types (ErrorType, NSError) results in the user info dictionary being lost: class CustomError: NSError {} let error = CustomError(domain: "com.