Create safearray