Add Scrollbar and Range support to cast().