Cast is simple. Is the object you put in a ThingYouCastTo. Let me know if you figure out the rest for yourself