I am using ver 0.6.0012 C# components.
This newer version is very strict in casting types.
I have been fighting with "specified cast is not valid" error (without specifying which type to which type) for a while.
This was revealed to be caused by connecting Numberslider to Integer input. (Even if the Numberslider outputs integer, the type is double.)
Hope it would help someone in the same problem.
Tags: