STUD-2557: removed casting of the objects.  This was only needed for primatives

@dlamy @jfairley

Small mod to remove the casting of the objects.  Casting was only required on primitives.  Also testing collections constructor args