I am using the public method as below to convert the API data type into Int.
public func convertToInt( value : Any) -> Int{ if let v = value as? Strin
Setup your project to use both swift and objective c. Here is the link for that Then you need to import the Swift class in the similar way you import Objective C class and use it in the same way you would have used in Objective C Class.