Both are correct. They may be construed as equivalent, but I hear a subtle difference, namely (1) I consider myself Jim's friend. I treat Jim as a friend.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.