@SuppressWarnings("unchecked")
    public <T> Optional<RowMapper<T>> findFor(Class<T> type) {
        RowMapper<T> mapper = (RowMapper<T>) findFor((Type) type).orElse(null);
        return Optional.ofNullable(mapper);
    }
Obtain a row mapper for the given type in the given context.

@param <T> the type of the mapper to find
@param type the target type to map to
@return a RowMapper for the given type, or empty if no row mapper is registered for the given type.
core/src/main/java/org/jdbi/v3/core/mapper/RowMappers.java