I have a code to sort array of object MyDate, which since is Any, and the value is set from ObjectMapper, the value of since get from json like this:
...
"since": "1536642141",
...
Those code run well in Xcode 9.4.1 but got crash in Xcode 10.
tempDates = tempDates.sorted(by: { Int(String.init(describing: $0.since))! < Int(String.init(describing: $1.since))! })
The crash message is "Fatal error: Unexpectedly found nil while unwrapping an Optional value" Is this a bug of Xcode? How could I fix it?