add cast to quiet compiler warning