is - to check if the variable is of that type. as? - is used to cast the variable to a desired type as! - is used to cast the variable to a desire type by force unwrapping way.
is - to check if the variable is of that type. as? - is used to cast the variable to a desired type as! - is used to cast the variable to a desire type by force unwrapping way.