Cast res as string