naive converter to handle nulls automatically