Added missing typecast