determine the variable type,type(i)