fix: casting enum to int