entity for json expected type
type casting and null allowing params