1

I have an unsigned 63-bit value that I store in a UInt64 that I need to convert to an AnyObject so I can store it in a NSDictionary. I have converted it to an Int, but that will only store it on a 64-bit system, on a 32-bit system an Int is still 32-bit and I get an error. Since neither UInt64 nor Int64 can be cast to an AnyObject, I cannot use them. Do I have better options than NSNumber(unsignedlonglong: value)

niklassaers
  • 8,480
  • 20
  • 99
  • 146

0 Answers0