Changed rxt.cast to be useful for single values as well as objects/arrays.