Fixed issues with initializer lists and type-casting