Change cast from a:b to (a:b) to fix issue with ternary object
Always set parameters in use before using their types
Row count starts at 1 not 0
Being setup for dynamic dispatch