Modify comparisons in extra to accept direct numbers [#785]

As discussed in #785