Safely cast ASFBoolAttributes

 * Modify _safe_cast to account for ASFBoolAttributes