Cast the RHS to ensure that it is of the correct disretization.