What kind of precondition and what kind of example do you have for the typing? My primary precondition is null checks, which is unavoidable
This is echoed in an amazing book called Domain Design Made Functional, which radically changed how I thought about what a type system is and what it can actually do for us if we lean on it correctly (even a relatively crummy one like Java's!).