casting can be done but if you do downcating , it will always give classCastException.
try doing up casting as follows
package abc ;
import java.util.*;
public class H
{
public static void main(
String[] args)
{
LinkedHashMap<Integer,String>lhm=new LinkedHashMap<Integer,String>();
lhm.put(new Integer(1),"abc");
System.out.println(lhm);
HashMap<Integer,String> hm= (HashMap<Integer,String>
lhm;
System.out.println (lhm);
}
}