helper  to convert C to java [x] -> get(x)