Telling maxima something is an integer



> Is there a way to tell maxima something is an integer?

declare(qqq,integer)$
askinteger(qqq) => yes
(-1)^(2*qqq) => 1
sin(qqq*%pi) => 0