Win10 , R 3.2.2,
> x2 <- 1:2
> as.character(x2)
[1] "1" "2"
> class(x2)
[1] "integer"
> x2 <- as.character(x2)