added castToLNode Method