Cast the Option's inner object as type T
, returning a new Option with the cast value if the cast
was successful, or None if not
Cast the Option's inner object as type T
, returning a new Option with the cast value if the cast
was successful, or None if not
the type to which this wrapped Option's inner value will be cast
a new Option with the cast value, or None if the cast was unsuccessful or opt
was None
Cast the Option's inner object as type T
, returning a new Option with the cast value if the cast
was successful and pred
is then satisfied, or None if not
Cast the Option's inner object as type T
, returning a new Option with the cast value if the cast
was successful and pred
is then satisfied, or None if not
the type to which this wrapped Option's inner value will be cast
the function to be satisfied, based on some value of type T
a new Option with the cast value, or None if the cast was unsuccessful, pred
was not satisfied,
or opt
was None
Cast the wrapped object as type T
, optionally returning the newly cast object if the cast was successful
Cast the wrapped object as type T
, optionally returning the newly cast object if the cast was successful
the type to which this wrapped object will be cast
the ClassTag of type T
optionally, the newly cast object, or None if the cast was unsuccessful
(castableOption: CastableAny).cast(target)
Cast the wrapped object as type T
and optionally return it if it satisfies some predicate pred
Cast the wrapped object as type T
and optionally return it if it satisfies some predicate pred
the type to which this wrapped object will be cast
the function to be satisfied, based on some value of type T
optionally, the newly cast object, or None if the cast was unsuccessful or pred
was not satisfied
(castableOption: CastableAny).castIf(pred)(arg0)
Wrapper to allow any Option to cast its inner object, if it exists