Use idomatic casting on API manager error logs.