res = [int(x) for x in str(num)] 

Read more of this post