Added cast to Integer because build error would occur.