explicit cast to silence compiler warnings