HideCategoriesTemporary() ICollection[ElementId] error

hi
see IList<Type> problem

also, you are passing twice the wall category in your example ;p

doc.ActiveView.HideCategoriesTemporary(
[DB.ElementId(DB.BuiltInCategory.OST_Walls,
DB.ElementId(DB.BuiltInCategory.OST_Walls,
] )