Swift
let string = "AIUEO"
let int = 10
//When you want to find out if it is a string
if String(string) != nil{
    print("String type")
} else{
    print("Not of type String")
}
//String type
//When you want to check if it is an Int type
if Int(string) != nil{
    print("String type")
} else{
    print("Not of type String")
}
//Not of type String
//When you want to check if it is a String type
if int is String{
    print("String type")
} else{
    print("Not of type String")  //This is called
}
//When you want to check if it is an Int type
if string is Int{
    print("Int type")   
} else{
    print("Not an Int type")     //This is called
}