add doc for lvlcast and rcast