Hashtable table = new Hashtable(); table["key"] = true; if (table["key"] == (object)true) Console.WriteLine("bool!");