Add APIMapper to better define api objects and cast values