I cannot seem to find a function or method that returns the type of an object in Swift.
How does one retrieve the type or class of an object in Swift?
I tried using Obj-C classes which obviously did not work.
In python you have things like type
or isinstance
In Javascript you have constructor