Injection to cast back and forth between two types.
WARNING: this uses java's Class.cast, which is subject to type erasure. If you have
a type parameterized type, like List[String] => List[Any], the cast will succeed, but
the inner items will not be correct. This is intended for experts.
Injection to cast back and forth between two types. WARNING: this uses java's Class.cast, which is subject to type erasure. If you have a type parameterized type, like List[String] => List[Any], the cast will succeed, but the inner items will not be correct. This is intended for experts.