Updated Logic.java -- repeat part 2

Cast value to Expression.