convert boolean values to integers for redis adapter