'Entity' now has a 'getComponentAs' function that automatically casts the 'BaseComponent' to the required type