Well, I found out a solution and it is quite embarassing telling what it is.
I just assigned the rhs of the equation to an auxiliary variable, and then I just did
var = auxiliary_var
It is not an alternative to rhs function, but solved my problem.
Sorry for being stupid.