Why need to typecast ? Cant we use generics directly?

public HashTable(int capacity){
this.bucketArray = (LinkedList[])new LinkedList[capacity];
}