Possible fix for 'inconvertible types' error

Not sure if it will fix it as eclipse had no issue with it at all.
However, jenkins threw up red flags when trying to compile the code.