the class to be cast
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
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
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
(castableAny: 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
(castableAny: CastableAny).castIf(pred)(arg0)
Wrapper to allow any class to be cast, based on a ClassTag for that class