type conversion gotcha examples in R