Typecasting was causing a problem changing from float to integer.[YZABP-835]