Raise proper RuntimeError when cast methods are missing