It looks like SetContainerType is expecting an int and not ContainterTypes as its parameter, so, as Mutant_Fruit suggested just change the parameter type from int to ContainerTypes and you won't need to cast.

Also you should consider using singular for the enum type name, e.g., ContainerType instead of ContainerTypes, http://msdn2.microsoft.com/en-us/lib...01(VS.71).aspx