Check the type of the variable, issue #32