Import from CSV: Null Error on Non Null Value

I figured it out, I was using the header format for the import tool and not the cypher import statement. Updated the header without the type declaration and then used toInteger in the cypher command, loading just fine now.

LOAD CSV WITH HEADERS FROM 'file:///WikiPage.csv' AS row
MERGE (c:WikiPage {id: toInteger(row.page_id), title: row.page_title})

LOAD CSV WITH HEADERS FROM 'file:///links_to.csv' AS row
MATCH (f:WikiPage {id: toInteger(row.f_id)}),(t:WikiPage {id: toInteger(row.t_id)})
CREATE (f)-[:links_to]->(t)