convert variable type.