Is this what you want?
let string = "\(type(of: 4))" print(string) // Int print(string == "Int") // true