Remove casting warning