Type casting is supported in PHP, but only to string, array, float, int and object.
DB::table('articles')
->where( 'myColumn', (string) $annee)
->orderBy('date', 'DESC')->toSql();
But a quick and dirty way to do it is simply add a string to it.
DB::table('articles')
->where('myColumn', "" + $annee)
->orderBy('date', 'DESC')->toSql();