public void Explicit_Cast_Should_Throw_On_Casting_Null() { Action action = () => ((bool)(AtomicBoolean)null).Whatever(); action.ShouldThrow<InvalidCastException>(); }