I was using a function that requires input as integers.
So I have been trying to read up on making things integers:
y <- 3.14 as.integer(y) [1] 3
seems int64 is already deprecated. I use package bit64, method as.integer64() and solve the problem. details are referred to here.
as.integer64()