check.type.one.var function

Verify the type of one variable