Empower Interview Question

how type casting works in swift