Use cb_handle_t::from instead of c-style-cast

cb_handle_t::from checks if the object pointed
is valid.

Bug: 145244672
Test: build
Change-Id: I9e3a024eda619243fe9437ea0501806f206682fc
Signed-off-by: Roman Kiryanov <rkir@google.com>
2 files changed