Completed command enum
Added cast to be compatible with g++