asterisk: chast bool to int for ast_db