Cast app_id as integer