Incomparable types in Stack

https://ide.codingblocks.com/s/146844 I used a character stack and its peek function is showing incomparable types error between object and char

resolved .I sorted the problem