I am extracting a bool value from a (non-generic, heterogeneous) collection.
bool
The as operator may only be used with reference types, so it is no
as
You can also simply do, if it fits:
if(rawValue is true) { //do stuff }