Add an explicit cast to silence compiler warning here