xtcool: fix warning for data type convert