type_of_the_stmt

Dear all,
I am interested in the visit on the detailed type of the statement.
For example,
long i;
i = 1.1;

The second statement is a BinaryOperator, and the “i” is of type “long int”. But I don’t know how to get the type of “i” through the APIs of Clang(because the APIs are complicated for me). Could you tell some details in how to obtain the specific type of a node of AST?

/Cheers
By Redder.