type cast fix

lucid is getting old