Refactor elements value property to align with each type.