still stuck on fixing val to take objects that cast into doubles or booleans