type convert boolean to integer