Added: arr_convert function