Add toPrimitives