setting null values requires separate method that can supply type information