Type casting in Swift is implemented with the is and as operators. is is used to check the type of a value whereas as is used to cast a value to a different type.
Read moreWhat is the meaning of != operator?
The not-equal -to operator ( != ) returns true if the operands don’t have the same value; otherwise, it returns false .
Read more