Explicit cast for eliminate compiler warnings