insert explicit cast to hopefully silence compiler warnings on some systems