cast funguje