That is very strange - is that dataframe called sample? Because it should just work:
sample = data.frame(ID = c("659175822", "595117221", "595117264", "595117708", "595119208"))
sample$ID
#> [1] "659175822" "595117221" "595117264" "595117708" "595119208"
as.numeric(sample$ID)
#> [1] 659175822 595117221 595117264 595117708 595119208
Created on 2021-12-06 by the reprex package (v2.0.1)
Could you paste the output of dput(sample)? Then I'll have access to the data we're talking about.