fix: ensure the input array is of correct type

Curve fit arguments may not be passed in as numpy arrays but need to be cast if not