Massive refactor of the Casting system, Pig can now cast