how to compare two variable type in swift code example Example: swift compare strings print("foo".elementsEqual("bar")) //false