Be smarter about casting values to the correct type and make it easier to clear values.