R objects conversions