fixed convert_to_array for ruby 1.9.2