ValueAs class, converting values to expected output