let str = "foo" let ostr: String? = str let hstr: AnyHashable = ostr as AnyHashable print(hstr == AnyHashable(str)) print(hstr == AnyHashable(ostr))