deal with null in primitive converters