cast to fix type error
public getter/setters
added attribute child of basestat