This is very nasty, but I can't think of any way around this. There's otherwise no way I can perform the comparison.