types.castInteger(format = "default", value = 1)
types.castInteger(format = "default", value = "1")
# cast trailing non numeric character
types.castInteger(format = "default", value = "1$", options = list(bareNumber = FALSE))
Run the code above in your browser using DataLab