Added automatic casting from HASH to ARRAY