Look at the method declaration. The toDOB function is of type TDOB, so the function returns a TDOB object.
I forgot some () which I will now put in.
If it returned and integer it would be
But in terms of your game I don't think this kind of type conversion would be the best idea.
I forgot some () which I will now put in.
Method toDOB:TDOB()
If it returned and integer it would be
Method toDOB:Int()
But in terms of your game I don't think this kind of type conversion would be the best idea.