Fixed: bug with Value validation (ClassCastException).