updated how collections and casting is handled