Added vector elements type assertion