Add converter function for filter