allow type of datum to be set (valid types are value, array and object)