Using get_posts to get posts based on a checkbox value with Advanced Custom Fields

OK, I found the answer here:

WP Query post meta value

Turns out you have to use the serialize php function due to how wordpress stores arrays in the database.

function get_city_jobs() {

    $city = ($_GET['city']);
    $city = trim(ucfirst($city));

    $args = array( 
        'post_type'     =>  'careers_post_type', 
        'numberposts'   =>  -1,
        'meta_query' => array(
            array(
                'key' => 'city',
                'value' => serialize($city),
                'compare' => 'LIKE'
            )
        )
    );

    return get_posts($args);

}