typecasted warning