Added cast to mutex variable.