cast val as string