Make `find' helpers more type-safe