Properly initialise and cast array properties