Switched typeCode to NSNumber from int.