Changing type of threads hashtable