Update Entity.java

I'm just watching your Stream and seeing that you always cast the result of this Method like this:
Foo asd = (Foo) entity.getComponent(Foo.class);
What my change did, is to cast it for you.
So you can do for example:
Foo asd = entity.getComponent(Foo.class);

Have a nice day!