fixed bug in R code of missing .jcast()s