Don't cast object type and ID to string in case they are nil