convert record to proplists