data structure conversions