Is there a function to determine the variable type in Swift? I presume there might be something like like type() in Python.
I\'d like a way to judge if
I use breakpoints during debuging but if you need to check if they match a certain type during runtime then drewag is right
another thing you can do is test datatype with assertion this would only work in debugging but with assertion you can set conditions which if met app crashes
maybe something like assert(let tArray == oldArray as? NSArray[] //if not NSArray app crashes)