Type conversions in R work as you would expect. For example, adding a character string to a numeric vector converts all the elements in the vector to character.
Use is.foo to test for data type foo. Returns TRUE or FALSEUse as.foo to explicitly convert it.