The only way out the ghetto, you know the stereotype
Shooting hoops or live on the stereo like top 40
The perception (stereotype) of the hood/ghetto is that only rappers and basketball players get out and make better lives for themselves.
Also, “stereo-type” is a nod to the music of the “top 40” he talks about in the next line.
To help improve the meaning of these lyrics, visit "Black Boy Fly" by Kendrick Lamar Lyrics and leave a comment on the lyrics box