remove try/catch
bencoder: using unsafe_any_cast since we check type