Reference that can hold either a typed value or an exception.
Convenience helper to cast the given Option of Any to an Option of the given type.
Convenience helper to cast the given Option of Any to an Option of the given type. Will throw a ClassCastException if the actual type is not assignable from the given one.
Convenience helper to cast the given Option of Any to an Option of the given type.
Convenience helper to cast the given Option of Any to an Option of the given type. Will swallow a possible ClassCastException and return None in that case.