in src/nms-api/Util/PrimitiveMapInterceptor.cs [160:183]
public bool GetBool(string key)
{
Object value = GetObjectProperty(key);
try
{
if (value is Boolean)
{
return (bool) value;
}
else if (value is String)
{
return ((string) value).ToLower() == "true";
}
else
{
throw new MessageFormatException(" cannot read a boolean from " + value.GetType().Name);
}
}
catch (FormatException ex)
{
throw NMSExceptionSupport.CreateMessageFormatException(ex);
}
}