hudsonb
01/22/2019, 2:48 PMas? with !! doesn't make much sense to me. You are "safe-casting" which will produce null if the cast fails rather than throwing an exception. I'd probably change it to as, and let the exception tell you why the cast is failing.