Improve diagnostic for ConditionAccessor in case of type mismatch
In case the condition object is present, but can not be converted to the requested type, throw an exception... this will replace, in case of failure, a downstream SEGV with an error message.
Edited by Gerhard Raven