change cast demo code for icon