Removed typecast warning