Foundation and CoreFoudation extensions