How to set type for select filter

Hello guys, is there a way to modify type for meta_query?

I’ve tried without luck…

add_filter( 'bricks/posts/query_vars', function( $query_vars, $settings, $element_id, $element_name ) {

	if ( $element_id !== 'pxqhpw' ) {
		return $query_vars;
	}

	foreach ( $query_vars['meta_query'] as &$meta ) {
		if ( isset( $meta['key'] ) && $meta['key'] === 'year' ) {
			$meta['type'] = 'NUMERIC';
		}
	}

	return $query_vars;

}, 10, 4 );

I am trying to specify type because, filtering custom meta does not work as it tries to compare string and not numeric values. There is no way to specify type on filter element yet.

Thanks for any help :folded_hands:

Any idea?

I did try run and results as well but I suppose there should be easier way to adjust meta query type for specific key.