Using swift dictionary <nsobject, anyobject> to fix crash