add a helper function for converting from a data format of lower generality to a format of higher generality