simplify type checking on Value subclasses