allow objects with getValue to be queried