2 PID´s connected in series!!

Can't help you with your problem other then what others suggested to make sure you are passing a proper float variable as the input to the second PID.

In the process control world, having two PID controllers in series is not all that unusual, it is called a 'cascade loop'.