How to convert string written as array to actual array in php?

Is there a simple way to convert this:
$string = "[4164,8720,10303,10340,10627]"
to an actual array? I know that i can use explode and implode, but when i receive huge string like above, i have some speed issues with my web site. Any help is appreciated!