convert enable flag to int type