int cast fix