Handling different core data datatypes