return (InternetAddress[]) addrs.toArray(new InternetAddress[addrs.size()]);
return (Address[]) addrs.toArray(new Address[addrs.size()]);
    InternetAddress[] getHeaderAsAddresses(String name, boolean strict) throws MessagingException {        List addrs = new ArrayList();        List headers = getHeaderList(name);        if (headers == null) {            return null;        }        for (Iterator i = headers.iterator(); i.hasNext();) {            InternetHeader header = (InternetHeader) i.next();            InternetAddress[] addresses = InternetAddress.parseHeader(header.getValue(), strict);            for (int j = 0; j < addresses.length; j++) {                addrs.add(addresses[j]);            }        }        return (InternetAddress[]) addrs.toArray(new InternetAddress[addrs.size()]);    }