safe set datatype