Follow:
Code:
int text = Int32.Parse((string)dataRow["Id"]);
this.Models.Add((string)text, new RoomModel((string)text, (int)dataRow["door_x"], (int)dataRow["door_y"], (double)dataRow["door_z"], (int)dataRow["door_dir"], (string)dataRow["heightmap"], (string)dataRow["public_items"], GoldTree.smethod_3(dataRow["club_only"].ToString())));
The dictionary is string, RoomModel, as I can tell looking at this code (except you are trying to fix it), so if you want to change that, you would have to follow the this.Model dictionary, change string to int, but it is unrecommended - it may give you error of string to int conversion, or others. Be aware.