Converts map element into an AnyValueMap or returns empty AnyValueMap if conversion is not possible.

        :param key: an index of element to get.

        :return: AnyValueMap value of the element or empty AnyValueMap if conversion is not supported.

def get_as_array(self, key):
        """
        Converts map element into an AnyValueMap or returns empty AnyValueMap if conversion is not possible.

        :param key: an index of element to get.

        :return: AnyValueMap value of the element or empty AnyValueMap if conversion is not supported.
        """
        value = self.get(key)
        return AnyValueMap.from_value(value)