Doc cleanup, casting.