Just a note:
Always check if the object exists after casting and before using it. Otherwise you'll get a crash.