James, you mean readFields and writeFields() on a node? This is not the expression right?  And this executes on the client side only. Am i missing something here? Because I didnot find a CastExpression.