Explicit cast to retain the volatile qualifier.