Added cast to remove compiler warning.